react-native-navigation的迁移库

RNNBasePresenter.m 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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)applyOptionsOnWillMoveToParentViewController:(RNNNavigationOptions *)options {
  17. [self.bottomTabPresenter applyOptions:options];
  18. }
  19. - (void)applyOptions:(RNNNavigationOptions *)initialOptions {
  20. [self.bottomTabPresenter applyOptions:initialOptions];
  21. }
  22. - (void)mergeOptions:(RNNNavigationOptions *)options resolvedOptions:(RNNNavigationOptions *)resolvedOptions {
  23. [self.bottomTabPresenter mergeOptions:options resolvedOptions:resolvedOptions];
  24. }
  25. - (void)setDefaultOptions:(RNNNavigationOptions *)defaultOptions {
  26. _defaultOptions = defaultOptions;
  27. [self.bottomTabPresenter setDefaultOptions:defaultOptions];
  28. }
  29. @end