react-native-navigation的迁移库

RNNComponentOptions.m 344B

12345678910111213141516
  1. #import "RNNComponentOptions.h"
  2. @implementation RNNComponentOptions
  3. - (instancetype)initWithDict:(NSDictionary *)dict {
  4. self = [super init];
  5. self.name = [TextParser parse:dict key:@"name"];
  6. self.componentId = [TextParser parse:dict key:@"componentId"];
  7. self.alignment = [TextParser parse:dict key:@"alignment"];
  8. return self;
  9. }
  10. @end