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. typedef void (^RNNReactViewReadyCompletionBlock)(void);
  11. typedef void (^PreviewCallback)(UIViewController *vc);
  12. @interface RNNRootViewController : UIViewController <UIViewControllerPreviewingDelegate, UISearchResultsUpdating, UISearchBarDelegate, UINavigationControllerDelegate, UISplitViewControllerDelegate>
  13. @property (nonatomic, strong) RNNEventEmitter *eventEmitter;
  14. @property (nonatomic, retain) RNNLayoutInfo* layoutInfo;
  15. @property (nonatomic) id<RNNRootViewCreator> creator;
  16. @property (nonatomic, strong) RNNAnimator* animator;
  17. @property (nonatomic, strong) UIViewController* previewController;
  18. @property (nonatomic, copy) PreviewCallback previewCallback;
  19. - (instancetype)initWithLayoutInfo:(RNNLayoutInfo *)layoutInfo
  20. rootViewCreator:(id<RNNRootViewCreator>)creator
  21. eventEmitter:(RNNEventEmitter*)eventEmitter
  22. isExternalComponent:(BOOL)isExternalComponent;
  23. - (BOOL)isCustomViewController;
  24. - (BOOL)isCustomTransitioned;
  25. - (void)waitForReactViewRender:(BOOL)wait perform:(RNNReactViewReadyCompletionBlock)readyBlock;
  26. - (void)applyModalOptions;
  27. - (void)optionsUpdated;
  28. -(void)onButtonPress:(RNNUIBarButtonItem *)barButtonItem;
  29. @end