react-native-navigation的迁移库

RNNSplitViewOptions.m 403B

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