react-native/Libraries/NativeAnimation/Nodes
Janic Duplessis fc45471af2 Native Animations - Fix edge case with restore default values
Summary:
There was an edge case where sometimes a view could be added and removed in the same batch so this caused issues because we ran `disconnectAnimatedNodeFromView` before `connectAnimatedNodeToView`. This separates restoring default values from `disconnectAnimatedNodeFromView` so we can run only `restoreDefaultValues` on the pre-operations queue and just do nothing in case the view doesn't exist (it is fine because we know it will be removed immediately).

**Test plan**
Tested that native animations still work properly in RNTester and tested that the edge case crash was fixed.
Closes https://github.com/facebook/react-native/pull/14114

Differential Revision: D5128989

Pulled By: javache

fbshipit-source-id: 9f47a2d3aafeb06d8ed1a4dd1800b8af225edb7d
2017-05-25 06:18:36 -07:00
..
RCTAdditionAnimatedNode.h Add support for native animations on iOS 2016-06-09 10:43:51 -07:00
RCTAdditionAnimatedNode.m Add support for native animations on iOS 2016-06-09 10:43:51 -07:00
RCTAnimatedNode.h Fix NativeAnimation invalidation & races on iOS 2016-11-28 11:13:31 -08:00
RCTAnimatedNode.m Fix NativeAnimation invalidation & races on iOS 2016-11-28 11:13:31 -08:00
RCTDiffClampAnimatedNode.h Add support for DiffClamp node 2016-09-06 15:43:35 -07:00
RCTDiffClampAnimatedNode.m Move all header imports to "<React/..>" 2016-11-23 07:58:39 -08:00
RCTDivisionAnimatedNode.h Introduced AnimatedDivision 2016-09-26 16:43:51 -07:00
RCTDivisionAnimatedNode.m Move all header imports to "<React/..>" 2016-11-23 07:58:39 -08:00
RCTInterpolationAnimatedNode.h Add support for native animations on iOS 2016-06-09 10:43:51 -07:00
RCTInterpolationAnimatedNode.m Native Animated - Add tests on iOS 2017-03-28 09:16:58 -07:00
RCTModuloAnimatedNode.h Modulo node 2016-08-31 14:43:43 -07:00
RCTModuloAnimatedNode.m Modulo node 2016-08-31 14:43:43 -07:00
RCTMultiplicationAnimatedNode.h Add support for native animations on iOS 2016-06-09 10:43:51 -07:00
RCTMultiplicationAnimatedNode.m Add support for native animations on iOS 2016-06-09 10:43:51 -07:00
RCTPropsAnimatedNode.h Native Animations - Fix edge case with restore default values 2017-05-25 06:18:36 -07:00
RCTPropsAnimatedNode.m Native Animations - Fix edge case with restore default values 2017-05-25 06:18:36 -07:00
RCTStyleAnimatedNode.h Fix NativeAnimation invalidation & races on iOS 2016-11-28 11:13:31 -08:00
RCTStyleAnimatedNode.m Fix NativeAnimation invalidation & races on iOS 2016-11-28 11:13:31 -08:00
RCTTransformAnimatedNode.h Fix NativeAnimation invalidation & races on iOS 2016-11-28 11:13:31 -08:00
RCTTransformAnimatedNode.m Drive any numerical prop via NativeAnimated 2017-01-26 18:28:53 -08:00
RCTValueAnimatedNode.h Move all header imports to "<React/..>" 2016-11-23 07:58:39 -08:00
RCTValueAnimatedNode.m Add extractOffset to Animated 2016-11-07 20:43:37 -08:00