react-native/Libraries/NativeAnimation
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
..
Drivers Add support for native animated events on iOS 2016-11-01 03:58:53 -07:00
Nodes Add extractOffset to Animated 2016-11-07 20:43:37 -08:00
RCTAnimation.xcodeproj Add support for native animated events on iOS 2016-11-01 03:58:53 -07:00
RCTAnimationUtils.h
RCTAnimationUtils.m
RCTNativeAnimatedModule.h Add support for native animated events on iOS 2016-11-01 03:58:53 -07:00
RCTNativeAnimatedModule.m Add extractOffset to Animated 2016-11-07 20:43:37 -08:00
RCTViewPropertyMapper.h
RCTViewPropertyMapper.m