react-native-navigation的迁移库

RNNSideMenuSideOptions.m 500B

123456789101112131415161718
  1. #import "RNNSideMenuSideOptions.h"
  2. @implementation RNNSideMenuSideOptions
  3. - (instancetype)initWithDict:(NSDictionary *)dict {
  4. self = [super init];
  5. self.visible = [BoolParser parse:dict key:@"visible"];
  6. self.enabled = [BoolParser parse:dict key:@"enabled"];
  7. self.width = [DoubleParser parse:dict key:@"width"];
  8. self.shouldStretchDrawer = [BoolParser parse:dict key:@"shouldStretchDrawer"];
  9. self.animationVelocity = [DoubleParser parse:dict key:@"animationVelocity"];
  10. return self;
  11. }
  12. @end