react-native-navigation的迁移库

RNNLargeTitleOptions.m 465B

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