Skip to content

Commit 134e697

Browse files
davidLeonardiJohann
authored andcommitted
Fixing #26
1 parent a9b6823 commit 134e697

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ The **`<Router />`** object used to initialize the navigation can take the follo
100100
- `firstRoute` (required): A React class corresponding to the first page of your navigation
101101
- `headerStyle`: Apply a StyleSheet to the navigation bar. You'll probably want to change the backgroundColor for example.
102102
- `titleStyle`: Apply a StyleSheet to the navigation bar titles. Useful for changing the font or text color.
103+
- `bgStyle` Apply a StyleSheet to the background of all routes.
104+
- `statusBarColor`: Specify the string `black` if you want the statusbar to be dark in color, or leave unspecified for a `light-content` style. Refer to StatusBarIOS for details.
103105
- `borderBottomWidth`: Apply a bottom border to your navbar.
104106
- `borderColor`: Apply a border color to your bottom border.
105107
- `backButtonComponent`: By default, the navigation bar will display a simple "Back" text for the back button. To change this, you can specify your own backButton component (like in the Twitter app).
@@ -108,6 +110,7 @@ The **`<Router />`** object used to initialize the navigation can take the follo
108110
- `hideNavigationBar`: Hide the navigation bar, always
109111
- `handleBackAndroid` (Boolean value): Apply a listener to the native back button on Android. On click, it will go to the previous route until it reach the first scene, then it will exit the app.
110112

113+
111114
The **`this.props.toRoute()`** callback prop takes one parameter (a JavaScript object) which can have the following keys:
112115
- `name`: The name of your route, which will be shown as the title of the navigation bar unless it is changed.
113116
- `component` (required): The React class corresponding to the view you want to render.

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,9 +298,9 @@ class Router extends React.Component {
298298
// Status bar color
299299
if (Platform.OS === 'ios') {
300300
if (this.props.statusBarColor === 'black') {
301-
StatusBarIOS.setStyle(0);
301+
StatusBarIOS.setStyle(0); // "Default" style according to StatusBarIOS.js
302302
} else {
303-
StatusBarIOS.setStyle(1);
303+
StatusBarIOS.setStyle(1); // "light-content" style according to StatusBarIOS.js
304304
}
305305
} else if (Platform.OS === 'android') {
306306
// no android version yet

0 commit comments

Comments
 (0)