You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -108,6 +108,7 @@ The **`this.props.toRoute()`** callback prop takes one parameter (a JavaScript o
108
108
-`hideNavigationBar`: If set to a truthy value will hide the navigationbar out of view, and move the component so that it is at the top of the screen.
109
109
-`leftCornerProps`: If you set a `leftCorner` component you can use this property to pass props to that component.
110
110
-`rightCornerProps`: If you set a `rightCorner` component you can use this property to pass props to that component.
111
+
-`titleProps`: If you set a `titleComponent` you can use this property to pass props to that component.
111
112
-`sceneConfig`: Control the animation of the route being switched. Possible values are:
112
113
- Navigator.SceneConfigs.FadeAndroid
113
114
- Navigator.SceneConfigs.FloatFromBottom
@@ -119,15 +120,15 @@ The **`this.props.toRoute()`** callback prop takes one parameter (a JavaScript o
119
120
- Navigator.SceneConfigs.VerticalDownSwipeJump
120
121
- Navigator.SceneConfigs.VerticalUpSwipeJump
121
122
122
-
The **`this.props.replaceRoute`** takes in an object that can contain the same keys as `toRoute()`. The difference is that instead of adding a route to your stack, it replaces the route
123
+
The **`this.props.replaceRoute`**function takes in an object that can contain the same keys as `toRoute()`. The difference is that instead of adding a route to your stack, it replaces the route
123
124
that you're on with the new route that you pass it.
124
125
- This is useful for login or signup screens. If you don't want your user to be able to navigate back to it, then use `replaceRoute()` rather than `toRoute()`.
125
126
126
-
The **`this.props.resetToRoute`** takes in an object that can contain the same keys as `toRoute()`. The difference is that instead of adding a route to your stack, it replaces the route
127
+
The **`this.props.resetToRoute`**function takes in an object that can contain the same keys as `toRoute()`. The difference is that instead of adding a route to your stack, it replaces the route
127
128
that you're on with the new route that you pass it, and empties the navigation stack as well.
128
129
- This is useful for going to an application after a login or signup screens. If you don't want your user to be able to navigate back to it, then use `resetToRoute()` rather than `replaceRoute()`.
129
130
130
-
The **`this.props.setRightProps`**and **`this.props.setLeftProps`** take in an object of props and sends that to your navbar's `RightComponent` and `LeftComponent`.
131
+
The functions **`this.props.setRightProps`**, **`this.props.setLeftProps`**and **`this.props.setTitleProps`** take in an object of props and sends that to your navbar's `RightComponent`, `LeftComponent` or `TitleComponent`, respectively.
131
132
- This allows you to talk directly to your navbar, because previously you could only talk to it when navigating forward or backward.
0 commit comments