react-native-navigation的迁移库

RNNTitleOptions.m 470B

12345678910111213141516171819
  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.color = [ColorParser parse:dict key:@"color"];
  9. self.component = [[RNNComponentOptions alloc] initWithDict:dict[@"component"]];
  10. return self;
  11. }
  12. @end