react-native-navigation的迁移库

BottomTabAppearancePresenter.m 619B

12345678910111213141516
  1. #import "BottomTabAppearancePresenter.h"
  2. #import "TabBarItemAppearanceCreator.h"
  3. @implementation BottomTabAppearancePresenter
  4. - (void)bindViewController:(UIViewController *)boundViewController {
  5. [super bindViewController:boundViewController];
  6. boundViewController.tabBarItem.standardAppearance = [[UITabBarAppearance alloc] init];
  7. }
  8. - (void)updateTabBarItem:(UITabBarItem *)tabItem bottomTabOptions:(RNNBottomTabOptions *)bottomTabOptions {
  9. self.boundViewController.tabBarItem = [TabBarItemAppearanceCreator updateTabBarItem:self.boundViewController.tabBarItem bottomTabOptions:bottomTabOptions];
  10. }
  11. @end