Skip to content

Commit

Permalink
fix: status bars in example
Browse files Browse the repository at this point in the history
  • Loading branch information
brentvatne committed Sep 3, 2019
1 parent b83c4bb commit 97016c4
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
9 changes: 4 additions & 5 deletions example/src/StackWithHeaderPreset.tsx
@@ -1,5 +1,4 @@
import * as React from 'react';
import { StatusBar } from 'react-native';
import {
NavigationScreenProp,
NavigationState,
Expand Down Expand Up @@ -30,7 +29,7 @@ class HomeScreen extends React.Component<NavScreenProps> {
title="Push screen with no header"
/>
<Button onPress={() => navigation.goBack(null)} title="Go Home" />
<StatusBar barStyle="default" />
<Themed.StatusBar />
</SafeAreaView>
);
}
Expand All @@ -57,7 +56,7 @@ class OtherScreen extends React.Component<NavScreenProps> {
/>
<Button onPress={() => pop()} title="Pop" />
<Button onPress={() => navigation.goBack(null)} title="Go back" />
<StatusBar barStyle="default" />
<Themed.StatusBar />
</SafeAreaView>
);
}
Expand All @@ -76,7 +75,7 @@ class ScreenWithLongTitle extends React.Component<NavScreenProps> {
<SafeAreaView style={{ paddingTop: 30 }}>
<Button onPress={() => pop()} title="Pop" />
<Button onPress={() => navigation.goBack(null)} title="Go back" />
<StatusBar barStyle="default" />
<Themed.StatusBar />
</SafeAreaView>
);
}
Expand All @@ -97,7 +96,7 @@ class ScreenWithNoHeader extends React.Component<NavScreenProps> {
<Button onPress={() => push('Other')} title="Push another screen" />
<Button onPress={() => pop()} title="Pop" />
<Button onPress={() => navigation.goBack(null)} title="Go back" />
<StatusBar barStyle="default" />
<Themed.StatusBar />
</SafeAreaView>
);
}
Expand Down
5 changes: 3 additions & 2 deletions example/src/StacksAndKeys.tsx
@@ -1,6 +1,7 @@
import React from 'react';
import { StatusBar, Text, View } from 'react-native';
import { Text, View } from 'react-native';
import { NavigationScreenProp, NavigationState } from 'react-navigation';
import { Themed } from 'react-navigation';
import { createStackNavigator } from 'react-navigation-stack';
import { Button } from './commonComponents/ButtonWithMargin';

Expand All @@ -27,7 +28,7 @@ class HomeScreen extends React.Component<Props, any> {
title="Go back to other examples"
onPress={() => this.props.navigation.goBack(null)}
/>
<StatusBar barStyle="default" />
<Themed.StatusBar />
</View>
);
}
Expand Down
5 changes: 3 additions & 2 deletions example/src/StacksInTabs.tsx
@@ -1,6 +1,7 @@
import React from 'react';
import { StatusBar, Text } from 'react-native';
import { Text } from 'react-native';
import {
Themed,
NavigationScreenProp,
NavigationState,
SafeAreaView,
Expand Down Expand Up @@ -52,7 +53,7 @@ class MyNavScreen extends React.Component<Props> {
))}
</SafeAreaView>

<StatusBar barStyle="default" />
<Themed.StatusBar />
</ScrollView>
);
}
Expand Down
11 changes: 5 additions & 6 deletions example/src/SwitchWithStacks.tsx
Expand Up @@ -2,12 +2,11 @@ import React from 'react';
import {
ActivityIndicator,
AsyncStorage,
StatusBar,
StyleSheet,
View,
Platform,
} from 'react-native';
import { createSwitchNavigator } from 'react-navigation';
import { Themed, createSwitchNavigator } from 'react-navigation';
import { createStackNavigator } from 'react-navigation-stack';
import { Button } from './commonComponents/ButtonWithMargin';

Expand All @@ -24,7 +23,7 @@ class SignInScreen extends React.Component<any, any> {
title="Go back to other examples"
onPress={() => this.props.navigation.goBack(null)}
/>
<StatusBar barStyle="default" />
<Themed.StatusBar />
</View>
);
}
Expand All @@ -45,7 +44,7 @@ class HomeScreen extends React.Component<any, any> {
<View style={styles.container}>
<Button title="Show me more of the app" onPress={this.showMoreApp} />
<Button title="Actually, sign me out :)" onPress={this.signOutAsync} />
<StatusBar barStyle="default" />
<Themed.StatusBar />
</View>
);
}
Expand Down Expand Up @@ -74,7 +73,7 @@ class OtherScreen extends React.Component<any, any> {
return (
<View style={styles.container}>
<Button title="I'm done, sign me out" onPress={this.signOutAsync} />
<StatusBar barStyle="default" />
<Themed.StatusBar />
</View>
);
}
Expand Down Expand Up @@ -105,7 +104,7 @@ class LoadingScreen extends React.Component<any, any> {
return (
<View style={styles.container}>
<ActivityIndicator />
<StatusBar barStyle="default" />
<Themed.StatusBar />
</View>
);
}
Expand Down

0 comments on commit 97016c4

Please sign in to comment.