react-native-navigation的迁移库

RNNBasePresenter.h 1.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. - (BOOL)hidesBottomBarWhenPushed;
  27. @end