react-native-navigation的迁移库

RNNSubtitleOptions.m 515B

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