Skip to content

Commit c75dd12

Browse files
johannhofcharpeni
authored andcommitted
Update README.md (#163)
Added a mention of the sceneConfig prop and added the PushFromLeft animation that was added in facebook/react-native@8ebe66d
1 parent 9914eda commit c75dd12

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ The **`<Router />`** object used to initialize the navigation can take the follo
126126
- `hideNavigationBar`: Hide the navigation bar, always
127127
- `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.
128128
- `statusBarProps`: Default StatusBar props, please refer to [StatusBar Docs](https://facebook.github.io/react-native/docs/statusbar.html#content). (Android) If `backgroundColor` isn't provided, it will take the same color as defined in `headerStyle`.
129+
- `sceneConfig`: Default animation to be used in case no `sceneConfig` is provided by the `toRoute` function. More details and possible parameters are in the `toRoute` documentation below. Defaults to `Navigator.SceneConfigs.FloatFromRight`.
129130

130131

131132
The **`this.props.toRoute()`** callback prop takes one parameter (a JavaScript object) which can have the following keys:
@@ -150,6 +151,7 @@ The **`this.props.toRoute()`** callback prop takes one parameter (a JavaScript o
150151
- Navigator.SceneConfigs.FloatFromLeft
151152
- Navigator.SceneConfigs.FloatFromRight
152153
- Navigator.SceneConfigs.HorizontalSwipeJump
154+
- Navigator.SceneConfigs.PushFromLeft
153155
- Navigator.SceneConfigs.PushFromRight
154156
- Navigator.SceneConfigs.VerticalDownSwipeJump
155157
- Navigator.SceneConfigs.VerticalUpSwipeJump

0 commit comments

Comments
 (0)