Explorar el Código

added tabBarHidden property to navigatorStyle (#1868)

Ali Najafizadeh hace 7 años
padre
commit
af347c5a0e
Se han modificado 1 ficheros con 7 adiciones y 0 borrados
  1. 7
    0
      ios/RCCViewController.m

+ 7
- 0
ios/RCCViewController.m Ver fichero

@@ -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) {