react-native-navigation的迁移库

RNNSplitViewController.m 658B

123456789101112131415161718192021222324252627282930
  1. #import "RNNSplitViewController.h"
  2. @implementation RNNSplitViewController
  3. -(instancetype)initWithOptions:(RNNSplitViewOptions*)options
  4. withComponentId:(NSString*)componentId
  5. rootViewCreator:(id<RNNRootViewCreator>)creator
  6. eventEmitter:(RNNEventEmitter*)eventEmitter {
  7. self = [super init];
  8. self.componentId = componentId;
  9. self.options = options;
  10. self.eventEmitter = eventEmitter;
  11. self.creator = creator;
  12. self.navigationController.delegate = self;
  13. return self;
  14. }
  15. -(void)viewWillAppear:(BOOL)animated{
  16. [super viewWillAppear:animated];
  17. [self.options applyOn:self];
  18. }
  19. - (UIViewController *)getLeafViewController {
  20. return self;
  21. }
  22. @end