react-native-navigation的迁移库

RNNAnimationConfigurationOptions.m 494B

123456789101112131415161718192021
  1. #import "RNNAnimationConfigurationOptions.h"
  2. @implementation RNNAnimationConfigurationOptions
  3. - (instancetype)initWithDict:(NSDictionary *)dict {
  4. self = [super init];
  5. self.from = [DoubleParser parse:dict key:@"from"];
  6. self.to = [DoubleParser parse:dict key:@"to"];
  7. self.startDelay = [DoubleParser parse:dict key:@"startDelay"];
  8. self.duration = [DoubleParser parse:dict key:@"duration"];
  9. return self;
  10. }
  11. - (BOOL)hasAnimation {
  12. return self.from.hasValue && self.to.hasValue;
  13. }
  14. @end