react-native-navigation的迁移库

ElementBaseTransition.m 903B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #import "ElementBaseTransition.h"
  2. @implementation ElementBaseTransition {
  3. Text* _interpolation;
  4. }
  5. @synthesize duration = _duration;
  6. @synthesize startDelay = _startDelay;
  7. - (instancetype)initWithView:(UIView *)view startDelay:(NSTimeInterval)startDelay duration:(NSTimeInterval)duration interpolation:(Text *)interpolation {
  8. self = [super init];
  9. _view = view;
  10. _startDelay = startDelay;
  11. _duration = duration;
  12. _interpolation = interpolation;
  13. return self;
  14. }
  15. - (CGFloat)defaultDuration {
  16. return 300;
  17. }
  18. - (NSTimeInterval)startDelay {
  19. return _startDelay;
  20. }
  21. - (CGFloat)duration {
  22. return _duration;
  23. }
  24. - (CATransform3D)animateWithProgress:(CGFloat)p {
  25. return CATransform3DIdentity;
  26. }
  27. - (RNNInterpolationOptions)interpolation {
  28. return [RCTConvert RNNInterpolationOptions:_interpolation];
  29. }
  30. - (void)end {
  31. }
  32. - (CGFloat)initialValue {
  33. return 0;
  34. }
  35. @end