react-native-navigation的迁移库

RNNInsetsOptions.m 376B

1234567891011121314151617
  1. #import "RNNInsetsOptions.h"
  2. @implementation RNNInsetsOptions
  3. - (instancetype)initWithDict:(NSDictionary *)dict {
  4. self = [super init];
  5. self.top = [DoubleParser parse:dict key:@"top"];
  6. self.left = [DoubleParser parse:dict key:@"left"];
  7. self.bottom = [DoubleParser parse:dict key:@"bottom"];
  8. self.right = [DoubleParser parse:dict key:@"right"];
  9. return self;
  10. }
  11. @end