react-native/Libraries/NativeAnimation
Janic Duplessis 40bcc38d91 Support the `Slow Animations` option of the iOS simulator (#21157)
Summary:
RN animations currently ignore the `Slow Animations` option on the iOS simulator because we don't use UIKit animations directly. This uses a private api to get the slow coefficient and use it in the native animated driver. We only compile the private api code on simulator so this won't cause issues for app store approval. One possible issue is that the api changes in new iOS versions but I think it's reasonable to do this.

Note that this won't work with JS driven animations, we could expose the slow coefficient as a constant and use that in JS but I decided not to implement it.
Pull Request resolved: https://github.com/facebook/react-native/pull/21157

Differential Revision: D9980306

Pulled By: sahrens

fbshipit-source-id: bdbce2e469261a75cb4b9a251e8e8f212bb9c4e7
2018-09-20 16:18:03 -07:00
..
Drivers Support the `Slow Animations` option of the iOS simulator (#21157) 2018-09-20 16:18:03 -07:00
Nodes Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTAnimation.xcodeproj Update Xcode projects (#19574) 2018-06-19 23:48:12 -07:00
RCTAnimationUtils.h Support the `Slow Animations` option of the iOS simulator (#21157) 2018-09-20 16:18:03 -07:00
RCTAnimationUtils.m Support the `Slow Animations` option of the iOS simulator (#21157) 2018-09-20 16:18:03 -07:00
RCTNativeAnimatedModule.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTNativeAnimatedModule.m Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTNativeAnimatedNodesManager.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RCTNativeAnimatedNodesManager.m Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00