react-native-navigation的迁移库

ElementFrameTransition.m 286B

1234567891011
  1. #import "ElementFrameTransition.h"
  2. @implementation ElementFrameTransition
  3. - (CATransform3D)animateWithProgress:(CGFloat)p {
  4. self.view.frame = [RNNInterpolator fromRect:self.from toRect:self.to precent:p interpolation:self.interpolation];
  5. return CATransform3DIdentity;
  6. }
  7. @end