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
+14-4Lines changed: 14 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -96,11 +96,21 @@ The **`this.props.toRoute()`** callback prop takes one parameter (a JavaScript o
96
96
-`leftCorner`: Specify a component to render on the left side of the navigation bar (like the "Add people"-button on the first page of the Twitter app)
97
97
-`rightCorner`: Specify a component to render on the right side of the navigation bar
98
98
-`titleComponent`: Specify a component to replace the title. This could for example be your logo (as in the first page of the Instagram app)
99
-
-`headerStyle`: change the style of your header for the new route. You could for example specify a new backgroundColor and the router will automatically make a nice transition from one color to the other!
99
+
-`headerStyle`: Change the style of your header for the new route. You could for example specify a new backgroundColor and the router will automatically make a nice transition from one color to the other!
100
100
-`passProps`: Takes in an object. Passes each `key: value` pair to your component as a prop. i.e. <Componentkey={value} />
101
-
-`trans`: if you set trans to `true` it will make the navbar transparent and move your component content so that it sits behind the nav.
102
-
-`leftCornerProps`: if you set a `leftCorner` component you can use this property to pass props to that component.
103
-
-`rightCornerProps`: if you set a `rightCorner` component you can use this property to pass props to that component.
101
+
-`trans`: If you set trans to `true` it will make the navbar transparent and move your component content so that it sits behind the nav.
102
+
-`leftCornerProps`: If you set a `leftCorner` component you can use this property to pass props to that component.
103
+
-`rightCornerProps`: If you set a `rightCorner` component you can use this property to pass props to that component.
104
+
-`sceneConfig`: Control the animation of the route being switched. Possible values are:
105
+
- Navigator.SceneConfigs.FadeAndroid
106
+
- Navigator.SceneConfigs.FloatFromBottom
107
+
- Navigator.SceneConfigs.FloatFromBottomAndroid
108
+
- Navigator.SceneConfigs.FloatFromLeft
109
+
- Navigator.SceneConfigs.FloatFromRight
110
+
- Navigator.SceneConfigs.HorizontalSwipeJump
111
+
- Navigator.SceneConfigs.PushFromRight
112
+
- Navigator.SceneConfigs.VerticalDownSwipeJump
113
+
- Navigator.SceneConfigs.VerticalUpSwipeJump
104
114
105
115
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
106
116
that you're on with the new route that you pass it.
0 commit comments