react-native-navigation的迁移库

RNNRootViewController.h 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. @interface RNNRootViewController : UIViewController <UIViewControllerPreviewingDelegate, UISearchResultsUpdating, UISearchBarDelegate, UINavigationControllerDelegate, UISplitViewControllerDelegate>
  10. @property (nonatomic, strong) RNNNavigationOptions* options;
  11. @property (nonatomic, strong) RNNEventEmitter *eventEmitter;
  12. @property (nonatomic, strong) NSString* componentId;
  13. @property (nonatomic) id<RNNRootViewCreator> creator;
  14. @property (nonatomic, strong) RNNAnimator* animator;
  15. @property (nonatomic, strong) UIViewController* previewController;
  16. - (instancetype)initWithName:(NSString*)name
  17. withOptions:(RNNNavigationOptions*)options
  18. withComponentId:(NSString*)componentId
  19. rootViewCreator:(id<RNNRootViewCreator>)creator
  20. eventEmitter:(RNNEventEmitter*)eventEmitter
  21. isExternalComponent:(BOOL)isExternalComponent;
  22. - (void)applyTabBarItem;
  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. @end