react-native-navigation的迁移库

RNNBackgroundOptions.m 487B

12345678910111213141516171819
  1. #import "RNNBackgroundOptions.h"
  2. @implementation RNNBackgroundOptions
  3. - (instancetype)initWithDict:(NSDictionary *)dict {
  4. self = [super init];
  5. self.color = [ColorParser parse:dict key:@"color"];
  6. self.translucent = [BoolParser parse:dict key:@"translucent"];
  7. self.blur = [BoolParser parse:dict key:@"blur"];
  8. self.clipToBounds = [BoolParser parse:dict key:@"clipToBounds"];
  9. self.component = [[RNNComponentOptions alloc] initWithDict:dict[@"component"]];
  10. return self;
  11. }
  12. @end