react-native/Libraries/NavigationExperimental
Hedger Wang 55c308615a Expose a new prop `transition` for scene renderer.
Summary:
= Breaking Change (for experimental features) =

Major API changes in  NavigationAnimatedView

= New prop `transition` for scene renderer

In NavigationAnimatedView, we should not use `position` as a proxy of the
transtion which happens whenever navigation state changes.

Because `position` does not change unless navigation index changes, it won't
be possible to build animations for actions that replace navigation state
without changing the index.

This diff introduces an abstract prop `transition` that is exposed to the scene
renderers.

= Replace `applyAnimation` with `configureTransition`.

Expose a new optional prop  `configureTransition` that allows people to configure
transitions easily.

For instance, to configure the transition, do this:

```
function configureTransition() {
  return {
    dutation: 123,
    easing: Easing.easeInOut,
  };
}

```
<NavigationAnimatedView configureTransition={configureTransition) />

```

Reviewed By: ericvicenti

Differential Revision: D3278698

fbshipit-source-id: 25ebad286d8b41f46c35c0f32d6023ebd01f19e7
2016-05-11 18:45:31 -07:00
..
Reducer Expose a new prop `transition` for scene renderer. 2016-05-11 18:45:31 -07:00
__mocks__ Clean up APIs. 2016-03-04 14:57:31 -08:00
__tests__ Update Jest APIs on fbsource 2016-04-27 19:16:32 -07:00
NavigationAbstractPanResponder.js Simplify <NavigationCard />. 2016-03-15 15:59:26 -07:00
NavigationAnimatedView.js Expose a new prop `transition` for scene renderer. 2016-05-11 18:45:31 -07:00
NavigationExperimental.js Kill <NavigationView /> 2016-05-11 16:23:26 -07:00
NavigationPropTypes.js Expose a new prop `transition` for scene renderer. 2016-05-11 18:45:31 -07:00
NavigationStateUtils.js Clean up APIs. 2016-03-04 14:57:31 -08:00
NavigationTypeDefinition.js Expose a new prop `transition` for scene renderer. 2016-05-11 18:45:31 -07:00