Skip to content

Commit 99776e5

Browse files
mtshvokwasniewski
andauthored
fix: add tvOS 16.0 availability check for toolbar API (#312)
* fix: add tvOS 16.0 availability check for toolbar API * Create strange-turkeys-exist.md --------- Co-authored-by: Oskar Kwaśniewski <oskarkwasniewski@icloud.com>
1 parent e5bb712 commit 99776e5

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/strange-turkeys-exist.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"react-native-bottom-tabs": patch
3+
---
4+
5+
fix: add tvOS 16.0 availability check for toolbar API

packages/react-native-bottom-tabs/ios/TabViewImpl.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ extension View {
354354
@ViewBuilder
355355
func hideTabBar(_ flag: Bool) -> some View {
356356
if flag {
357-
if #available(iOS 16.0, *) {
357+
if #available(iOS 16.0, tvOS 16.0, *) {
358358
self.toolbar(.hidden, for: .tabBar)
359359
} else {
360360
// We fallback to isHidden on UITabBar

0 commit comments

Comments
 (0)