react-native/Libraries/NativeAnimation/Nodes
Janic Duplessis 1d37dd063c Native Animated - Add tests on iOS
Summary:
Adds unit tests to the Native Animated implementation on iOS. This pretty much mirrors the tests we currently have on Android.

It also fixes 2 bugs I've found when adding the tests and pass the current time in `stepAnimation` instead of using `CACurrentMediaTime` to make testing easier.

- `stopListeningToAnimatedNodeValue` did not actually work at all, it should set the listener to nil.
- The finished value in the animation end callback was always true, this simplifies the `RCTAnimationDriver` interface to get rid of `removeAnimation` and fixes the end callback value.

**Test plan**
- Run the tests
- Make sure the UIExplorer example still works
Closes https://github.com/facebook/react-native/pull/13068

Differential Revision: D4786701

Pulled By: javache

fbshipit-source-id: a4f07e6eec1f363ca47b6f27984041793c915bfc
2017-03-28 09:16:58 -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 Drive any numerical prop via NativeAnimated 2017-01-26 18:28:53 -08:00
RCTPropsAnimatedNode.m Native Animated - Restore default values when removing props on iOS 2017-03-28 05:33:02 -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