diff --git a/.changeset/strange-turkeys-exist.md b/.changeset/strange-turkeys-exist.md new file mode 100644 index 00000000..8c481973 --- /dev/null +++ b/.changeset/strange-turkeys-exist.md @@ -0,0 +1,5 @@ +--- +"react-native-bottom-tabs": patch +--- + +fix: add tvOS 16.0 availability check for toolbar API diff --git a/packages/react-native-bottom-tabs/ios/TabViewImpl.swift b/packages/react-native-bottom-tabs/ios/TabViewImpl.swift index 0d8b972d..ad6de7dc 100644 --- a/packages/react-native-bottom-tabs/ios/TabViewImpl.swift +++ b/packages/react-native-bottom-tabs/ios/TabViewImpl.swift @@ -354,7 +354,7 @@ extension View { @ViewBuilder func hideTabBar(_ flag: Bool) -> some View { if flag { - if #available(iOS 16.0, *) { + if #available(iOS 16.0, tvOS 16.0, *) { self.toolbar(.hidden, for: .tabBar) } else { // We fallback to isHidden on UITabBar