react-native-navigation的迁移库

RNNBasePresenter.m 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #import "RNNBasePresenter.h"
  2. #import "RNNBottomTabPresenter.h"
  3. @interface RNNBasePresenter()
  4. @property (nonatomic, strong) RNNBottomTabPresenter* bottomTabPresenter;
  5. @end
  6. @implementation RNNBasePresenter
  7. - (instancetype)init {
  8. self = [super init];
  9. self.bottomTabPresenter = [[RNNBottomTabPresenter alloc] init];
  10. return self;
  11. }
  12. - (void)bindViewController:(UIViewController *)bindedViewController {
  13. _bindedViewController = bindedViewController;
  14. [self.bottomTabPresenter bindViewController:bindedViewController];
  15. }
  16. - (void)applyOptionsOnInit:(RNNNavigationOptions *)initialOptions {
  17. }
  18. - (void)applyOptionsOnWillMoveToParentViewController:(RNNNavigationOptions *)options {
  19. [self.bottomTabPresenter applyOptions:options];
  20. }
  21. - (void)applyOptions:(RNNNavigationOptions *)initialOptions {
  22. [self.bottomTabPresenter applyOptions:initialOptions];
  23. }
  24. - (void)mergeOptions:(RNNNavigationOptions *)options resolvedOptions:(RNNNavigationOptions *)resolvedOptions {
  25. [self.bottomTabPresenter mergeOptions:options resolvedOptions:resolvedOptions];
  26. }
  27. - (void)setDefaultOptions:(RNNNavigationOptions *)defaultOptions {
  28. _defaultOptions = defaultOptions;
  29. [self.bottomTabPresenter setDefaultOptions:defaultOptions];
  30. }
  31. @end