@onekeyfe/react-native-tab-view 3.0.93 → 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.
@@ -509,7 +509,16 @@ class RCTTabViewContainerView: UIView {
509
509
 
510
510
  private func updateTabBarHidden() {
511
511
  guard let tbc = tabBarController else { return }
512
+ // Keep UIKit's tab bar visibility state in sync on iOS 18+.
513
+ #if compiler(>=6.0)
514
+ if #available(iOS 18.0, *) {
515
+ tbc.setTabBarHidden(tabBarHidden, animated: false)
516
+ } else {
517
+ tbc.tabBar.isHidden = tabBarHidden
518
+ }
519
+ #else
512
520
  tbc.tabBar.isHidden = tabBarHidden
521
+ #endif
513
522
  tbc.tabBar.isUserInteractionEnabled = !tabBarHidden
514
523
 
515
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.93",
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",