react-native-navigation的迁移库

RNNSplitViewOptions.m 373B

12345678910111213141516
  1. #import "RNNSplitViewOptions.h"
  2. @implementation RNNSplitViewOptions
  3. - (instancetype)initWithDict:(NSDictionary *)dict {
  4. self = [super init];
  5. self.displayMode = dict[@"displayMode"];
  6. self.primaryEdge = dict[@"primaryEdge"];
  7. self.minWidth = [NumberParser parse:dict key:@"minWidth"];
  8. self.maxWidth = [NumberParser parse:dict key:@"maxWidth"];
  9. return self;
  10. }
  11. @end