react-native/Libraries/CustomComponents/NavigationExperimental
Janic Duplessis ac19276534 Fix NavigationCardStackPanResponder to work with native animations
Summary:
`NavigationCardStackPanResponder` uses `__getValue` and the `stopAnimation` callback value which both doesn't work with native driven animation. The workaround here is to add a value listener so the JS value of the AnimatedValue gets updated too so `__getValue` has a relatively up to date value. This value should be good unless JS lags behind native a lot but that should not happen during a navigation gesture. Also added a comment that explains the hack.

**Test plan**
Tested in an app that uses native driven animations with a back gesture. This also needs #10643 and #10641 for everything to work properly.
Closes https://github.com/facebook/react-native/pull/10642

Differential Revision: D4135496

Pulled By: ericvicenti

fbshipit-source-id: 395aff78b16a37ad9407207a05504fdd6311f733
2016-11-04 20:43:43 -07:00
..
assets Rework the NavigationHeader 2016-03-21 22:07:26 -07:00
NavigationAnimatedValueSubscription.js Implements `renderHeader` for legacy navigator. 2016-03-10 17:17:21 -08:00
NavigationCard.js Clean unused import modules. 2016-10-16 11:13:40 -07:00
NavigationCardStack.js Enable native animations when possible 2016-10-19 15:28:44 -07:00
NavigationCardStackPanResponder.js Fix NavigationCardStackPanResponder to work with native animations 2016-11-04 20:43:43 -07:00
NavigationCardStackStyleInterpolator.js Enable native animations when possible 2016-10-19 15:28:44 -07:00
NavigationHeader.js Cleanup: Prefer `React.Element` over `React$?Element` 2016-10-14 08:59:37 -07:00
NavigationHeaderBackButton.js Provide RTL support in NavigationCardStack 2016-08-19 08:43:39 -07:00
NavigationHeaderStyleInterpolator.js Provide RTL support in NavigationCardStack 2016-08-19 08:43:39 -07:00
NavigationHeaderTitle.js Reverted commit D4027388 2016-10-16 04:13:42 -07:00
NavigationPagerPanResponder.js Cleanup: Remove `@typechecks` 2016-10-12 19:28:42 -07:00
NavigationPagerStyleInterpolator.js Provide RTL support for new Navigator -- Make RTL works in NUX 2016-07-11 20:58:32 -07:00
NavigationPointerEventsContainer.js Reverted commit D4027388 2016-10-16 04:13:42 -07:00