react-native-navigation的迁移库

RNNRootViewController.h 1.3KB

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 "RNNTopTabsViewController.h"
  9. #import "RNNRootViewProtocol.h"
  10. @class RNNRootViewController;
  11. typedef void (^RNNReactViewReadyCompletionBlock)(void);
  12. @interface RNNRootViewController : UIViewController <RNNRootViewProtocol, UIViewControllerPreviewingDelegate, UISearchResultsUpdating, UISearchBarDelegate>
  13. @property (nonatomic, strong) RNNNavigationOptions* options;
  14. @property (nonatomic, strong) RNNEventEmitter *eventEmitter;
  15. @property (nonatomic, strong) NSString* componentId;
  16. @property (nonatomic, strong) RNNTopTabsViewController* topTabsViewController;
  17. @property (nonatomic) id<RNNRootViewCreator> creator;
  18. @property (nonatomic, strong) RNNAnimator* animator;
  19. @property (nonatomic, strong) UIViewController* previewController;
  20. -(instancetype)initWithName:(NSString*)name
  21. withOptions:(RNNNavigationOptions*)options
  22. withComponentId:(NSString*)componentId
  23. rootViewCreator:(id<RNNRootViewCreator>)creator
  24. eventEmitter:(RNNEventEmitter*)eventEmitter
  25. isExternalComponent:(BOOL)isExternalComponent;
  26. - (void)onReactViewReady:(RNNReactViewReadyCompletionBlock)readyBlock;
  27. -(void)applyTabBarItem;
  28. -(void)applyTopTabsOptions;
  29. @end