react-native-navigation的迁移库

VerticalRotationTransition.m 361B

123456789101112
  1. #import "VerticalRotationTransition.h"
  2. @implementation VerticalRotationTransition
  3. - (CATransform3D)animateWithProgress:(CGFloat)p {
  4. double degrees = [RNNInterpolator fromFloat:self.from toFloat:self.to precent:p interpolation:self.interpolation];
  5. double rads = DEGREES_TO_RADIANS(degrees);
  6. return CATransform3DMakeRotation(rads, 0, 1, 0);
  7. }
  8. @end