react-native-navigation的迁移库

RNNBottomTabsOptions.m 1.1KB

1234567891011121314151617181920212223242526272829
  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.animate = [BoolParser parse:dict key:@"animate"];
  9. self.tabColor = [ColorParser parse:dict key:@"tabColor"];
  10. self.selectedTabColor = [ColorParser parse:dict key:@"selectedTabColor"];
  11. self.translucent = [BoolParser parse:dict key:@"translucent"];
  12. self.hideShadow = [BoolParser parse:dict key:@"hideShadow"];
  13. self.backgroundColor = [ColorParser parse:dict key:@"backgroundColor"];
  14. self.fontSize = [NumberParser parse:dict key:@"fontSize"];
  15. self.testID = [TextParser parse:dict key:@"testID"];
  16. self.currentTabId = [TextParser parse:dict key:@"currentTabId"];
  17. self.barStyle = [TextParser parse:dict key:@"barStyle"];
  18. self.fontFamily = [TextParser parse:dict key:@"fontFamily"];
  19. self.titleDisplayMode = [TextParser parse:dict key:@"titleDisplayMode"];
  20. return self;
  21. }
  22. @end