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
..
2016-10-14 08:13:55 -07:00
2016-11-07 20:43:37 -08:00
2016-11-04 05:43:44 -07:00
2016-10-11 10:14:28 -07:00
2016-11-04 05:43:44 -07:00
2016-10-12 19:28:42 -07:00
2016-11-04 05:43:44 -07:00
2016-11-04 05:43:44 -07:00
2016-11-02 12:29:15 -07:00
2016-08-09 06:43:46 -07:00
2016-11-04 18:43:42 -07:00
2016-11-02 12:29:15 -07:00
2016-11-04 05:43:44 -07:00
2016-11-04 05:43:44 -07:00
2016-11-04 05:43:44 -07:00
2016-07-25 03:43:29 -07:00
2016-08-09 06:43:46 -07:00
2016-11-04 05:43:44 -07:00
2016-11-04 05:43:44 -07:00
2016-08-12 07:28:38 -07:00