@onekeyfe/react-native-tab-view 3.0.94 → 3.0.95

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -510,11 +510,15 @@ class RCTTabViewContainerView: UIView {
510
510
  private func updateTabBarHidden() {
511
511
  guard let tbc = tabBarController else { return }
512
512
  // Keep UIKit's tab bar visibility state in sync on iOS 18+.
513
+ #if compiler(>=6.0)
513
514
  if #available(iOS 18.0, *) {
514
515
  tbc.setTabBarHidden(tabBarHidden, animated: false)
515
516
  } else {
516
517
  tbc.tabBar.isHidden = tabBarHidden
517
518
  }
519
+ #else
520
+ tbc.tabBar.isHidden = tabBarHidden
521
+ #endif
518
522
  tbc.tabBar.isUserInteractionEnabled = !tabBarHidden
519
523
 
520
524
  if !tabBarHidden {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onekeyfe/react-native-tab-view",
3
- "version": "3.0.94",
3
+ "version": "3.0.95",
4
4
  "description": "Native Bottom Tabs for React Native (UIKit implementation)",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/module/index.js",