react-native-navigation的迁移库

RNNBasePresenter.m 1.0KB

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. }
  24. - (void)setDefaultOptions:(RNNNavigationOptions *)defaultOptions {
  25. _defaultOptions = defaultOptions;
  26. [self.bottomTabPresenter setDefaultOptions:defaultOptions];
  27. }
  28. @end