Browse Source

added tabBarHidden property to navigatorStyle (#1868)

Ali Najafizadeh 7 years ago
parent
commit
af347c5a0e
1 changed files with 7 additions and 0 deletions
  1. 7
    0
      ios/RCCViewController.m

+ 7
- 0
ios/RCCViewController.m View File

465
     [viewController setNeedsStatusBarAppearanceUpdate];
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
   NSNumber *navBarHidden = self.navigatorStyle[@"navBarHidden"];
475
   NSNumber *navBarHidden = self.navigatorStyle[@"navBarHidden"];
469
   BOOL navBarHiddenBool = navBarHidden ? [navBarHidden boolValue] : NO;
476
   BOOL navBarHiddenBool = navBarHidden ? [navBarHidden boolValue] : NO;
470
   if (viewController.navigationController.navigationBarHidden != navBarHiddenBool) {
477
   if (viewController.navigationController.navigationBarHidden != navBarHiddenBool) {