react-native-navigation的迁移库

RNNAnimationsOptions.m 643B

12345678910111213141516171819
  1. #import "RNNAnimationsOptions.h"
  2. @implementation RNNAnimationsOptions
  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. self.setRoot = [[RNNScreenTransition alloc] initWithDict:dict[@"setRoot"]];
  11. return self;
  12. }
  13. @end