react-native-navigation的迁移库

RNNSideMenuOptions.m 553B

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