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

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,12 @@ class RCTTabViewContainerView: UIView {
509
509
 
510
510
  private func updateTabBarHidden() {
511
511
  guard let tbc = tabBarController else { return }
512
- tbc.tabBar.isHidden = tabBarHidden
512
+ // Keep UIKit's tab bar visibility state in sync on iOS 18+.
513
+ if #available(iOS 18.0, *) {
514
+ tbc.setTabBarHidden(tabBarHidden, animated: false)
515
+ } else {
516
+ tbc.tabBar.isHidden = tabBarHidden
517
+ }
513
518
  tbc.tabBar.isUserInteractionEnabled = !tabBarHidden
514
519
 
515
520
  if !tabBarHidden {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onekeyfe/react-native-tab-view",
3
- "version": "3.0.92",
3
+ "version": "3.0.94",
4
4
  "description": "Native Bottom Tabs for React Native (UIKit implementation)",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/module/index.js",