react-native-navigation的迁移库

RNNBottomTabsController+Helpers.m 1004B

123456789101112131415161718
  1. #import "RNNBottomTabsController+Helpers.h"
  2. #import "BottomTabsPresenterCreator.h"
  3. #import "BottomTabPresenterCreator.h"
  4. @implementation RNNBottomTabsController (Helpers)
  5. + (RNNBottomTabsController *)create {
  6. RNNNavigationOptions* defaultOptions = [[RNNNavigationOptions alloc] initEmptyOptions];
  7. return [self createWithChildren:nil];
  8. }
  9. + (RNNBottomTabsController *)createWithChildren:(NSArray *)children {
  10. RNNNavigationOptions* defaultOptions = [[RNNNavigationOptions alloc] initEmptyOptions];
  11. return [[RNNBottomTabsController alloc] initWithLayoutInfo:nil creator:nil options:[[RNNNavigationOptions alloc] initEmptyOptions] defaultOptions:defaultOptions presenter:[BottomTabsPresenterCreator createWithDefaultOptions:defaultOptions] bottomTabPresenter:[BottomTabPresenterCreator createWithDefaultOptions:defaultOptions] dotIndicatorPresenter:[[RNNDotIndicatorPresenter alloc] initWithDefaultOptions:defaultOptions] eventEmitter:nil childViewControllers:children bottomTabsAttacher:nil];
  12. }
  13. @end