react-native-navigation的迁移库

RNNSubtitleOptions.m 453B

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