浏览代码

added tabBarHidden property to navigatorStyle (#1868)

Ali Najafizadeh 7 年前
父节点
当前提交
af347c5a0e
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7
    0
      ios/RCCViewController.m

+ 7
- 0
ios/RCCViewController.m 查看文件

@@ -465,6 +465,13 @@ const NSInteger TRANSPARENT_NAVBAR_TAG = 78264803;
465 465
     [viewController setNeedsStatusBarAppearanceUpdate];
466 466
   }
467 467
   
468
+  NSNumber *tabBarHidden = self.navigatorStyle[@"tabBarHidden"];
469
+  BOOL tabBarHiddenBool = tabBarHidden ? [tabBarHidden boolValue] : NO;
470
+  if (tabBarHiddenBool) {
471
+    UITabBar *tabBar = viewController.tabBarController.tabBar;
472
+    tabBar.transform = CGAffineTransformMakeTranslation(0, tabBar.frame.size.height);
473
+  }
474
+
468 475
   NSNumber *navBarHidden = self.navigatorStyle[@"navBarHidden"];
469 476
   BOOL navBarHiddenBool = navBarHidden ? [navBarHidden boolValue] : NO;
470 477
   if (viewController.navigationController.navigationBarHidden != navBarHiddenBool) {