react-native/Libraries/NativeAnimation/Nodes
Ryan Gomba 6535858c71 Add extractOffset to Animated
Summary:
`flattenOffset` has proven extremely useful, especially when dealing with pan responders and other gesture based animations, but I've also found a number of use cases for the inverse. This diff introduces `extractOffset`, which sets the offset value to the base value, and resets the base value to zero. A common use case would be to extractOffset onGrant and flattenOffset onRelease.
Closes https://github.com/facebook/react-native/pull/10721

Differential Revision: D4145744

fbshipit-source-id: dc2aa31652df0b31450556f611db43548180c7dd
2016-11-07 20:43:37 -08: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 Add support for native animations on iOS 2016-06-09 10:43:51 -07:00
RCTAnimatedNode.m Add support for native animations on iOS 2016-06-09 10:43:51 -07:00
RCTDiffClampAnimatedNode.h Add support for DiffClamp node 2016-09-06 15:43:35 -07:00
RCTDiffClampAnimatedNode.m Add support for DiffClamp node 2016-09-06 15:43:35 -07:00
RCTDivisionAnimatedNode.h Introduced AnimatedDivision 2016-09-26 16:43:51 -07:00
RCTDivisionAnimatedNode.m Introduced AnimatedDivision 2016-09-26 16:43:51 -07:00
RCTInterpolationAnimatedNode.h Add support for native animations on iOS 2016-06-09 10:43:51 -07:00
RCTInterpolationAnimatedNode.m Add support for clamping for NativeAnimated on iOS 2016-10-20 14:13:38 -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 Add support for native animations on iOS 2016-06-09 10:43:51 -07:00
RCTPropsAnimatedNode.m Add support for native animations on iOS 2016-06-09 10:43:51 -07:00
RCTStyleAnimatedNode.h Maintain transform order 2016-08-02 14:28:29 -07:00
RCTStyleAnimatedNode.m Maintain transform order 2016-08-02 14:28:29 -07:00
RCTTransformAnimatedNode.h Maintain transform order 2016-08-02 14:28:29 -07:00
RCTTransformAnimatedNode.m Support static values in NativeAnimated transforms on iOS 2016-10-31 21:13:41 -07:00
RCTValueAnimatedNode.h Add extractOffset to Animated 2016-11-07 20:43:37 -08:00
RCTValueAnimatedNode.m Add extractOffset to Animated 2016-11-07 20:43:37 -08:00