react-native-navigation的迁移库

RNNBottomTabsOptions.m 1002B

123456789101112131415161718192021222324252627
  1. #import "RNNBottomTabsOptions.h"
  2. @implementation RNNBottomTabsOptions
  3. - (instancetype)initWithDict:(NSDictionary *)dict {
  4. self = [super init];
  5. self.visible = [BoolParser parse:dict key:@"visible"];
  6. self.currentTabIndex = [IntNumberParser parse:dict key:@"currentTabIndex"];
  7. self.drawBehind = [BoolParser parse:dict key:@"drawBehind"];
  8. self.tabColor = [ColorParser parse:dict key:@"tabColor"];
  9. self.selectedTabColor = [ColorParser parse:dict key:@"selectedTabColor"];
  10. self.translucent = [BoolParser parse:dict key:@"translucent"];
  11. self.hideShadow = [BoolParser parse:dict key:@"hideShadow"];
  12. self.backgroundColor = [ColorParser parse:dict key:@"backgroundColor"];
  13. self.fontSize = [NumberParser parse:dict key:@"fontSize"];
  14. self.testID = [TextParser parse:dict key:@"testID"];
  15. self.currentTabId = [TextParser parse:dict key:@"currentTabId"];
  16. self.barStyle = [TextParser parse:dict key:@"barStyle"];
  17. self.fontFamily = [TextParser parse:dict key:@"fontFamily"];
  18. return self;
  19. }
  20. @end