react-native-navigation的迁移库

RNNBasePresenter.h 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. - (UIInterfaceOrientationMask)getOrientation:(RNNNavigationOptions *)options;
  20. - (BOOL)isStatusBarVisibility:(UINavigationController *)stack resolvedOptions:(RNNNavigationOptions *)resolvedOptions;
  21. @end