react-native/Libraries/NativeAnimation
Krzysztof Magiera b8fafb46c1 Stop native driver animations when value is set.
Summary:
This diff changes the behaviour of natively driven animations in case the node that they are being run for has its value changed using `setValue` or as a result of an incoming event.

The reason for changing that is to match the JS implementation of `setValue` which behaves as described above (see relevant code here: 7cdd4d48c8/Libraries/Animated/src/AnimatedImplementation.js (L743))

**Test Plan:**
Use this sample app: https://snack.expo.io/B1V7RX9r-
Change: `USE_NATIVE_DRIVER` const between `true` and `false`.
See the animation stops regardless of the state of `USE_NATIVE_DRIVER` unlike before when it would stop only when `USE_NATIVE_DRIVER` was set to `false`
Closes https://github.com/facebook/react-native/pull/15054

Differential Revision: D5463750

Pulled By: hramos

fbshipit-source-id: e164c5299588ba8cac2937260c9ba9f6053b04e5
2017-07-20 14:20:30 -07:00
..
Drivers Native Animated - Support Animated.loop on iOS 2017-05-26 03:30:33 -07:00
Nodes Native Animations - Fix edge case with restore default values 2017-05-25 06:18:36 -07:00
RCTAnimation.xcodeproj Native Animated - Support decay on iOS 2017-04-24 04:31:43 -07:00
RCTAnimationUtils.h Native Animated - Add tests on iOS 2017-03-28 09:16:58 -07:00
RCTAnimationUtils.m Native Animated - Add tests on iOS 2017-03-28 09:16:58 -07:00
RCTNativeAnimatedModule.h RCTUIManagerObserverCoordinator: new way to subscribe for granular notifications from UI Manager 2017-05-08 12:52:09 -07:00
RCTNativeAnimatedModule.m Native Animations - Fix edge case with restore default values 2017-05-25 06:18:36 -07:00
RCTNativeAnimatedNodesManager.h Native Animations - Fix edge case with restore default values 2017-05-25 06:18:36 -07:00
RCTNativeAnimatedNodesManager.m Stop native driver animations when value is set. 2017-07-20 14:20:30 -07:00