react-native-navigation的迁移库

ElementAlphaTransition.m 345B

123456789101112131415
  1. #import "ElementAlphaTransition.h"
  2. @implementation ElementAlphaTransition
  3. - (CATransform3D)animateWithProgress:(CGFloat)p {
  4. self.view.alpha = [RNNInterpolator fromFloat:self.from toFloat:self.to precent:p interpolation:self.interpolation];
  5. return CATransform3DIdentity;
  6. }
  7. - (CGFloat)initialValue {
  8. return self.view.alpha;
  9. }
  10. @end