react-native-navigation的迁移库

SharedElementTransitionOptions.m 597B

1234567891011121314151617181920
  1. #import "SharedElementTransitionOptions.h"
  2. #import "RNNUtils.h"
  3. #import "TimeIntervalParser.h"
  4. @implementation SharedElementTransitionOptions
  5. - (instancetype)initWithDict:(NSDictionary *)transition {
  6. self = [super initWithDict:transition];
  7. self.fromId = [transition objectForKey:@"fromId"];
  8. self.toId = [transition objectForKey:@"toId"];
  9. self.startDelay = [TimeIntervalParser parse:transition key:@"startDelay"];
  10. self.duration = [TimeIntervalParser parse:transition key:@"duration"];
  11. self.interpolation = [TextParser parse:transition key:@"interpolation"];
  12. return self;
  13. }
  14. @end