react-native-macos/Libraries/CustomComponents/NavigationExperimental
Dan Hassin c8a7f9e2d1 Support custom card style interpolators
Summary:
Transition animations are not very customizable right now with NavigationExperimental, unless I am missing something big. This PR allows NavigationCardStack to receive the `horizontalCardStyleInterpolator` and `verticalCardStyleInterpolator` props to override the default interpolators.

See the gif, transition animation changes from the default one (with scale) to a custom one (without scale) when passing in a custom interpolator. (The custom interpolator is an exact copy of the one in `NavigationCardStackStyleInterpolator.forHorizontal`, minus the scale transform.)

![cmz0gagoec](https://cloud.githubusercontent.com/assets/1389312/20552499/af33667c-b119-11e6-97e7-bea9986a58e0.gif)

Let me know if there's a robust way to test, but I couldn't find anything.

**To address**
The new `canUseNativeDriver` function on NavigationCardStackStyleInterpolator, which returns `true`, is dependent on the interpolator, so custom interpolators may need to falsify this. Didn't include it on the first pass since I wasn
Closes https://github.com/facebook/react-native/pull/11082

Differential Revision: D4362540

Pulled By: ericvicenti

fbshipit-source-id: 2ebd0047c147ac3d6c43ce880661c99de8fd0880
2016-12-22 11:13:27 -08: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 Support custom card style interpolators 2016-12-22 11:13:27 -08:00
NavigationCardStackPanResponder.js Fix NavigationCardStackPanResponder to work with native animations 2016-11-04 20:43:43 -07:00
NavigationCardStackStyleInterpolator.js Android: Reduce overdraw layers by hiding cards when they are not visible 2016-11-14 08:59:24 -08:00
NavigationHeader.js Apple TV support 4: support for input (tvOS focus engine) 2016-12-19 06:28:40 -08: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