react-native-navigation的迁移库

RNNRootViewController.h 1.5KB

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