react-native-navigation的迁移库

RNNTitleOptions.m 532B

1234567891011121314151617181920
  1. #import "RNNTitleOptions.h"
  2. @implementation RNNTitleOptions
  3. - (instancetype)initWithDict:(NSDictionary *)dict {
  4. self = [super init];
  5. self.text = [TextParser parse:dict key:@"text"];
  6. self.fontFamily = [TextParser parse:dict key:@"fontFamily"];
  7. self.fontSize = [NumberParser parse:dict key:@"fontSize"];
  8. self.fontWeight = [TextParser parse:dict key:@"fontWeight"];
  9. self.color = [ColorParser parse:dict key:@"color"];
  10. self.component = [[RNNComponentOptions alloc] initWithDict:dict[@"component"]];
  11. return self;
  12. }
  13. @end