123456789101112131415161718192021222324252627 |
- #import "RNNTabBarOptions.h"
-
- @implementation RNNTabBarOptions
-
- -(instancetype)init {
- return [self initWithDict:@{}];
- }
-
- -(instancetype)initWithDict:(NSDictionary *)tabBarOptions {
- self = [super init];
-
- self.hidden = [tabBarOptions valueForKey:@"hidden"];
- self.animateHide = [tabBarOptions valueForKey:@"animateHide"];
- self.tabBadge = [tabBarOptions valueForKey:@"tabBadge"];
- self.currentTabIndex = [tabBarOptions valueForKey:@"currentTabIndex"];
- self.testID = [tabBarOptions valueForKey:@"testID"];
-
- return self;
- }
-
- -(void)mergeWith:(NSDictionary *)otherOptions {
- for (id key in otherOptions) {
- [self setValue:[otherOptions objectForKey:key] forKey:key];
- }
- }
- @end
|