react-native-navigation的迁移库

RCTConvert+Interpolation.h 614B

123456789101112131415161718192021222324
  1. #import <React/RCTConvert.h>
  2. typedef NS_ENUM(NSInteger, RNNInterpolationOptions) {
  3. RNNInterpolationLinear = 0,
  4. RNNInterpolationAccelerateDecelerate,
  5. RNNInterpolationDecelerate,
  6. RNNInterpolationAccelerate
  7. };
  8. @interface RCTConvert (Interpolation)
  9. @end
  10. @implementation RCTConvert (Interpolation)
  11. RCT_ENUM_CONVERTER(RNNInterpolationOptions, (@{
  12. @"linear": @(RNNInterpolationLinear),
  13. @"accelerateDecelerate": @(RNNInterpolationAccelerateDecelerate),
  14. @"decelerate": @(RNNInterpolationDecelerate),
  15. @"accelerate": @(RNNInterpolationAccelerate),
  16. }), RNNInterpolationLinear, integerValue)
  17. @end