react-native/Libraries/NavigationExperimental
Will Sun 3a53228127 Prevent race condition on immediate transition
Summary:
NavigationTransitioner prepares for transition within `componentWillReceiveProps`, using previously-saved state to determine how to properly handle new props. If a transition is to take place, the code saves new info in state, executes the transition, and cleans up scenes within `_onTransitionEnd`.

If the transition is a jump-to transition, or otherwise takes very little time, then it is possible for the setState call within `_onTransitionEnd` to use state which hasn't yet been set by the code within `componentWillReceiveProps`, resulting in a failed transition.

This fix ensures that the initial setState call is completed before executing the transition.
Closes https://github.com/facebook/react-native/pull/8709

Differential Revision: D3550872

fbshipit-source-id: 1364612048025f5f970b44cbfd0c31acc4a60f56
2016-07-12 13:13:24 -07:00
..
Reducer Fix NavigationScenesReducer. 2016-06-27 12:13:40 -07:00
__mocks__ Clean up APIs. 2016-03-04 14:57:31 -08:00
__tests__ Add `NavigationStateUtils.back()` and `NavigationStateUtils.forward()`. 2016-06-24 15:28:35 -07:00
NavigationAbstractPanResponder.js Simplify <NavigationCard />. 2016-03-15 15:59:26 -07:00
NavigationExperimental.js Kill NavigationAnimatedView 2016-06-21 15:59:04 -07:00
NavigationPropTypes.js Fix NavigationScenesReducer. 2016-06-27 12:13:40 -07:00
NavigationStateUtils.js Add `NavigationStateUtils.back()` and `NavigationStateUtils.forward()`. 2016-06-24 15:28:35 -07:00
NavigationTransitioner.js Prevent race condition on immediate transition 2016-07-12 13:13:24 -07:00
NavigationTypeDefinition.js BugFix: Title should be from scene.route.title 2016-06-30 17:58:25 -07:00