react-native-navigation的迁移库

RNNSideMenuOptions.m 519B

12345678910111213141516171819
  1. #import "RNNSideMenuOptions.h"
  2. #import "SideMenuOpenGestureModeParser.h"
  3. @implementation RNNSideMenuOptions
  4. - (instancetype)initWithDict:(NSDictionary *)dict {
  5. self = [super init];
  6. self.left = [[RNNSideMenuSideOptions alloc] initWithDict:dict[@"left"]];
  7. self.right = [[RNNSideMenuSideOptions alloc] initWithDict:dict[@"right"]];
  8. self.animationType = [TextParser parse:dict key:@"animationType"];
  9. self.openGestureMode = [SideMenuOpenGestureModeParser parse:dict key:@"openGestureMode"];
  10. return self;
  11. }
  12. @end