react-native-navigation的迁移库

RNNRootViewController.h 1.4KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. typedef void (^RNNReactViewReadyCompletionBlock)(void);
  10. @interface RNNRootViewController : UIViewController <UIViewControllerPreviewingDelegate, UISearchResultsUpdating, UISearchBarDelegate, UINavigationControllerDelegate, UISplitViewControllerDelegate>
  11. @property (nonatomic, strong) RNNNavigationOptions* options;
  12. @property (nonatomic, strong) RNNEventEmitter *eventEmitter;
  13. @property (nonatomic, strong) NSString* componentId;
  14. @property (nonatomic) id<RNNRootViewCreator> creator;
  15. @property (nonatomic, strong) RNNAnimator* animator;
  16. @property (nonatomic, strong) UIViewController* previewController;
  17. - (instancetype)initWithName:(NSString*)name
  18. withOptions:(RNNNavigationOptions*)options
  19. withComponentId:(NSString*)componentId
  20. rootViewCreator:(id<RNNRootViewCreator>)creator
  21. eventEmitter:(RNNEventEmitter*)eventEmitter
  22. isExternalComponent:(BOOL)isExternalComponent;
  23. - (void)applyTopTabsOptions;
  24. - (BOOL)isCustomViewController;
  25. - (BOOL)isCustomTransitioned;
  26. - (void)waitForReactViewRender:(BOOL)wait perform:(RNNReactViewReadyCompletionBlock)readyBlock;
  27. - (void)mergeOptions:(RNNOptions*)options;
  28. - (void)applyModalOptions;
  29. - (void)optionsUpdated;
  30. -(void)onButtonPress:(RNNUIBarButtonItem *)barButtonItem;
  31. @end