mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
b8fafb46c1
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: https://github.com/facebook/react-native/blob/7cdd4d48c89ad642a1c107e0b40c25eb75682175/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