react-native/Libraries/Animated/src
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
..
__tests__ RN: Simplify Animated-test.js 2016-11-02 14:58:52 -07:00
polyfills
Animated.js Fixed uiexplorer legocastle starting script 2016-10-19 08:44:27 -07:00
AnimatedImplementation.js Add extractOffset to Animated 2016-11-07 20:43:37 -08:00
AnimatedWeb.js
Easing.js Delay some requires in Animated 2016-06-14 05:14:01 -07:00
Interpolation.js Remove unused/invalid Flow suppression 2016-09-23 16:28:56 -07:00
NativeAnimatedHelper.js Add extractOffset to Animated 2016-11-07 20:43:37 -08:00
SpringConfig.js
bezier.js Refactor bezier implementation from bezier-easing library 2016-03-12 14:13:22 -08:00