Add support for custom transitionConfig (#1187)

* Fix transitionConfig regression

* Fix flow

* Add doc

* Update StackNavigator.md

* Update StackNavigator.md

* Update CardStackTransitioner.js

* Update TypeDefinition.js
This commit is contained in:
Neo
2017-04-24 20:31:44 +08:00
committed by Mike Grabowski
parent bbe9caff06
commit 6b8cb793b4
6 changed files with 21 additions and 17 deletions

View File

@@ -85,6 +85,7 @@ Visual options:
- `screen` - Each screen has a header attached to it and the header fades in and out together with the screen. This is a common pattern on Android.
- `none` - No header will be rendered.
- `cardStyle` - Use this prop to override or extend the default style for an individual card in stack.
- `transitionConfig` - Function to return an object that overrides default screen transitions.
- `onTransitionStart` - Function to be invoked when the card transition animation is about to start.
- `onTransitionEnd` - Function to be invoked once the card transition animation completes.