react-native-navigation的迁移库

RNNBasePresenter.h 1.4KB

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