react-native-navigation的迁移库

RNNTransitionsOptions.m 568B

123456789101112131415161718
  1. #import "RNNTransitionsOptions.h"
  2. @implementation RNNTransitionsOptions
  3. - (instancetype)initWithDict:(NSDictionary *)dict {
  4. self = [super init];
  5. self.push = [[RNNScreenTransition alloc] initWithDict:dict[@"push"]];
  6. self.pop = [[RNNScreenTransition alloc] initWithDict:dict[@"pop"]];
  7. self.showModal = [[RNNScreenTransition alloc] initWithDict:dict[@"showModal"]];
  8. self.dismissModal = [[RNNScreenTransition alloc] initWithDict:dict[@"dismissModal"]];
  9. self.setStackRoot = [[RNNScreenTransition alloc] initWithDict:dict[@"setStackRoot"]];
  10. return self;
  11. }
  12. @end