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) id boundViewController;
  5. @property(nonatomic, strong) NSString *boundComponentId;
  6. @property(nonatomic, strong) RNNNavigationOptions * defaultOptions;
  7. - (instancetype)initWithDefaultOptions:(RNNNavigationOptions *)defaultOptions;
  8. - (void)bindViewController:(UIViewController *)boundViewController;
  9. - (void)setDefaultOptions:(RNNNavigationOptions *)defaultOptions;
  10. - (void)applyOptionsOnInit:(RNNNavigationOptions *)initialOptions;
  11. - (void)applyOptionsOnViewDidLayoutSubviews:(RNNNavigationOptions *)options;
  12. - (void)applyOptions:(RNNNavigationOptions *)options;
  13. - (void)applyOptionsOnWillMoveToParentViewController:(RNNNavigationOptions *)options;
  14. - (void)applyDotIndicator:(UIViewController *)child;
  15. - (void)mergeOptions:(RNNNavigationOptions *)newOptions currentOptions:(RNNNavigationOptions *)currentOptions;
  16. - (void)renderComponents:(RNNNavigationOptions *)options perform:(RNNReactViewReadyCompletionBlock)readyBlock;
  17. - (void)viewDidLayoutSubviews;
  18. - (UIStatusBarStyle)getStatusBarStyle:(RNNNavigationOptions *)resolvedOptions;
  19. - (BOOL)isStatusBarVisibility:(UINavigationController *)stack resolvedOptions:(RNNNavigationOptions *)resolvedOptions;
  20. @end