react-native-navigation的迁移库

RNNRootViewController.h 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. typedef void (^RNNReactViewReadyCompletionBlock)(void);
  9. typedef void (^PreviewCallback)(UIViewController *vc);
  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. @property (nonatomic, copy) PreviewCallback previewCallback;
  18. - (instancetype)initWithName:(NSString*)name
  19. withOptions:(RNNNavigationOptions*)options
  20. withComponentId:(NSString*)componentId
  21. rootViewCreator:(id<RNNRootViewCreator>)creator
  22. eventEmitter:(RNNEventEmitter*)eventEmitter
  23. isExternalComponent:(BOOL)isExternalComponent;
  24. - (void)applyTabBarItem;
  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. @end