react-native-navigation的迁移库

RNNPreviewOptions.m 436B

123456789101112131415161718
  1. #import "RNNPreviewOptions.h"
  2. @implementation RNNPreviewOptions
  3. - (instancetype)initWithDict:(NSDictionary *)dict {
  4. self = [super initWithDict:dict];
  5. self.reactTag = [NumberParser parse:dict key:@"reactTag"];
  6. self.height = [NumberParser parse:dict key:@"height"];
  7. self.width = [NumberParser parse:dict key:@"width"];
  8. self.commit = [BoolParser parse:dict key:@"commit"];
  9. self.actions = dict[@"actions"];
  10. return self;
  11. }
  12. @end