@onekeyfe/react-native-tab-view 3.0.93 → 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
|
-
|
|
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 {
|