react-native-navigation的迁移库

RNNRootViewController.h 1.4KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #import <Foundation/Foundation.h>
  2. #import <UIKit/UIKit.h>
  3. #import "RNNLayoutNode.h"
  4. #import "RNNRootViewCreator.h"
  5. #import "RNNEventEmitter.h"
  6. #import "RNNNavigationOptions.h"
  7. #import "RNNAnimator.h"
  8. #import "RNNUIBarButtonItem.h"
  9. #import "RNNLayoutInfo.h"
  10. #import "RNNLeafProtocol.h"
  11. #import "RNNViewControllerPresenter.h"
  12. typedef void (^PreviewCallback)(UIViewController *vc);
  13. @interface RNNRootViewController : UIViewController <RNNLeafProtocol, UIViewControllerPreviewingDelegate, UISearchResultsUpdating, UISearchBarDelegate, UINavigationControllerDelegate, UISplitViewControllerDelegate, RNNPresenterDelegate>
  14. @property (nonatomic, strong) RNNEventEmitter *eventEmitter;
  15. @property (nonatomic, retain) RNNLayoutInfo* layoutInfo;
  16. @property (nonatomic, strong) RNNViewControllerPresenter* presenter;
  17. @property (nonatomic) id<RNNRootViewCreator> creator;
  18. @property (nonatomic, strong) RNNAnimator* animator;
  19. @property (nonatomic, strong) UIViewController* previewController;
  20. @property (nonatomic, copy) PreviewCallback previewCallback;
  21. - (instancetype)initWithLayoutInfo:(RNNLayoutInfo *)layoutInfo
  22. rootViewCreator:(id<RNNRootViewCreator>)creator
  23. eventEmitter:(RNNEventEmitter*)eventEmitter
  24. isExternalComponent:(BOOL)isExternalComponent
  25. presenter:(RNNViewControllerPresenter *)presenter;
  26. - (BOOL)isCustomViewController;
  27. - (BOOL)isCustomTransitioned;
  28. -(void)onButtonPress:(RNNUIBarButtonItem *)barButtonItem;
  29. @end