diff --git a/packages/react-native-bottom-tabs/ios/BottomAccessoryProvider.swift b/packages/react-native-bottom-tabs/ios/BottomAccessoryProvider.swift index 539efee7..cde3224b 100644 --- a/packages/react-native-bottom-tabs/ios/BottomAccessoryProvider.swift +++ b/packages/react-native-bottom-tabs/ios/BottomAccessoryProvider.swift @@ -9,7 +9,7 @@ import SwiftUI } #if !os(macOS) - @available(iOS 26.0, *) + @available(iOS 26.0, tvOS 26.0, *) public func emitPlacementChanged(_ placement: TabViewBottomAccessoryPlacement?) { var placementValue = "none" if placement == .inline { diff --git a/packages/react-native-bottom-tabs/ios/TabView/NewTabView.swift b/packages/react-native-bottom-tabs/ios/TabView/NewTabView.swift index 22c52cdf..9e8dd80a 100644 --- a/packages/react-native-bottom-tabs/ios/TabView/NewTabView.swift +++ b/packages/react-native-bottom-tabs/ios/TabView/NewTabView.swift @@ -78,11 +78,11 @@ struct ConditionalBottomAccessoryModifier: ViewModifier { } func body(content: Content) -> some View { - #if os(macOS) + #if os(macOS) || os(tvOS) // tabViewBottomAccessory is not available on macOS content #else - if #available(iOS 26.0, tvOS 26.0, visionOS 3.0, *), bottomAccessoryView != nil { + if #available(iOS 26.0, visionOS 3.0, *), bottomAccessoryView != nil { content .tabViewBottomAccessory { renderBottomAccessoryView() @@ -95,7 +95,7 @@ struct ConditionalBottomAccessoryModifier: ViewModifier { @ViewBuilder private func renderBottomAccessoryView() -> some View { - #if !os(macOS) + #if !os(macOS) && !os(tvOS) if let bottomAccessoryView { if #available(iOS 26.0, *) { BottomAccessoryRepresentableView(view: bottomAccessoryView) @@ -105,8 +105,8 @@ struct ConditionalBottomAccessoryModifier: ViewModifier { } } -#if !os(macOS) -@available(iOS 26.0, *) +#if !os(macOS) && !os(tvOS) +@available(iOS 26.0, tvOS 26.0, *) struct BottomAccessoryRepresentableView: PlatformViewRepresentable { @Environment(\.tabViewBottomAccessoryPlacement) var tabViewBottomAccessoryPlacement var view: PlatformView diff --git a/packages/react-native-bottom-tabs/ios/TabViewImpl.swift b/packages/react-native-bottom-tabs/ios/TabViewImpl.swift index 72938be9..1ead4451 100644 --- a/packages/react-native-bottom-tabs/ios/TabViewImpl.swift +++ b/packages/react-native-bottom-tabs/ios/TabViewImpl.swift @@ -282,7 +282,7 @@ extension View { @ViewBuilder func tabBarMinimizeBehavior(_ behavior: MinimizeBehavior?) -> some View { #if compiler(>=6.2) - if #available(iOS 26.0, macOS 26.0, *) { + if #available(iOS 26.0, macOS 26.0, tvOS 26.0, *) { if let behavior { self.tabBarMinimizeBehavior(behavior.convert()) } else { diff --git a/packages/react-native-bottom-tabs/ios/TabViewProps.swift b/packages/react-native-bottom-tabs/ios/TabViewProps.swift index 9cfb29a9..e9dc5d9d 100644 --- a/packages/react-native-bottom-tabs/ios/TabViewProps.swift +++ b/packages/react-native-bottom-tabs/ios/TabViewProps.swift @@ -7,9 +7,9 @@ internal enum MinimizeBehavior: String { case onScrollDown #if compiler(>=6.2) - @available(iOS 26.0, macOS 26.0, *) + @available(iOS 26.0, macOS 26.0, tvOS 26.0, *) func convert() -> TabBarMinimizeBehavior { -#if os(macOS) +#if os(macOS) || os(tvOS) return .automatic #else switch self {