react-native-navigation的迁移库

RNNTopTabOptions.m 430B

123456789101112131415161718192021222324
  1. #import "RNNTopTabOptions.h"
  2. @implementation RNNTopTabOptions
  3. -(instancetype)init {
  4. return [self initWithDict:@{}];
  5. }
  6. -(instancetype)initWithDict:(NSDictionary *)tabBarOptions {
  7. self = [super init];
  8. self.title = [tabBarOptions valueForKey:@"title"];
  9. return self;
  10. }
  11. -(void)mergeWith:(NSDictionary *)otherOptions {
  12. for (id key in otherOptions) {
  13. [self setValue:[otherOptions objectForKey:key] forKey:key];
  14. }
  15. }
  16. @end