react-native-navigation的迁移库

RNNBasePresenter.h 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #import "RNNNavigationOptions.h"
  2. #import "RNNReactComponentRegistry.h"
  3. typedef void (^RNNReactViewReadyCompletionBlock)(void);
  4. @interface RNNBasePresenter : NSObject
  5. @property(nonatomic, weak, setter=bindViewController:) UIViewController* boundViewController;
  6. @property(nonatomic, strong) NSString *boundComponentId;
  7. @property(nonatomic, strong) RNNNavigationOptions* defaultOptions;
  8. @property(nonatomic, strong) RNNReactComponentRegistry* componentRegistry;
  9. - (instancetype)initWithDefaultOptions:(RNNNavigationOptions *)defaultOptions;
  10. - (instancetype)initWithComponentRegistry:(RNNReactComponentRegistry *)componentRegistry defaultOptions:(RNNNavigationOptions *)defaultOptions;
  11. - (void)setDefaultOptions:(RNNNavigationOptions *)defaultOptions;
  12. - (void)applyOptionsOnInit:(RNNNavigationOptions *)initialOptions;
  13. - (void)applyOptionsOnViewDidLayoutSubviews:(RNNNavigationOptions *)options;
  14. - (void)applyOptions:(RNNNavigationOptions *)options;
  15. - (void)applyOptionsOnWillMoveToParentViewController:(RNNNavigationOptions *)options;
  16. - (void)mergeOptions:(RNNNavigationOptions *)options resolvedOptions:(RNNNavigationOptions *)resolvedOptions;
  17. - (void)renderComponents:(RNNNavigationOptions *)options perform:(RNNReactViewReadyCompletionBlock)readyBlock;
  18. - (void)viewDidLayoutSubviews;
  19. - (void)componentDidAppear;
  20. - (void)componentDidDisappear;
  21. - (UINavigationItem *)currentNavigationItem;
  22. - (void)willMoveToParentViewController:(UIViewController *)parent;
  23. - (UIStatusBarStyle)getStatusBarStyle;
  24. - (UIInterfaceOrientationMask)getOrientation;
  25. - (BOOL)getStatusBarVisibility;
  26. @end