react-native-navigation的迁移库

RNNBasePresenter.h 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. - (UIStatusBarStyle)getStatusBarStyle:(RNNNavigationOptions *)resolvedOptions;
  18. - (UIInterfaceOrientationMask)getOrientation:(RNNNavigationOptions *)options;
  19. - (BOOL)isStatusBarVisibility:(UINavigationController *)stack resolvedOptions:(RNNNavigationOptions *)resolvedOptions;
  20. @end