From 9727bec7ab2d0a8a6232bd93cfcbfe239523a8d7 Mon Sep 17 00:00:00 2001 From: Fredrik Burmester Date: Fri, 16 Jan 2026 08:30:33 +0100 Subject: [PATCH] fix: hide header buttons --- app/(auth)/(tabs)/(custom-links)/_layout.tsx | 2 +- app/(auth)/(tabs)/(home)/_layout.tsx | 20 +++++++++++++++++--- app/(auth)/(tabs)/(watchlists)/_layout.tsx | 6 +++--- components/stacks/NestedTabPageStack.tsx | 2 +- 4 files changed, 22 insertions(+), 8 deletions(-) diff --git a/app/(auth)/(tabs)/(custom-links)/_layout.tsx b/app/(auth)/(tabs)/(custom-links)/_layout.tsx index 3b8a58e2..67648e05 100644 --- a/app/(auth)/(tabs)/(custom-links)/_layout.tsx +++ b/app/(auth)/(tabs)/(custom-links)/_layout.tsx @@ -9,7 +9,7 @@ export default function CustomMenuLayout() { ), - headerShown: true, + headerShown: !Platform.isTV, headerBlurEffect: "prominent", headerTransparent: Platform.OS === "ios", headerShadowVisible: false, diff --git a/app/(auth)/(tabs)/(watchlists)/_layout.tsx b/app/(auth)/(tabs)/(watchlists)/_layout.tsx index 807530ac..c1ad5788 100644 --- a/app/(auth)/(tabs)/(watchlists)/_layout.tsx +++ b/app/(auth)/(tabs)/(watchlists)/_layout.tsx @@ -40,7 +40,7 @@ export default function WatchlistsLayout() { name='[watchlistId]' options={{ title: "", - headerShown: true, + headerShown: !Platform.isTV, headerBlurEffect: "none", headerTransparent: Platform.OS === "ios", headerShadowVisible: false, @@ -51,7 +51,7 @@ export default function WatchlistsLayout() { options={{ title: t("watchlists.create_title"), presentation: "modal", - headerShown: true, + headerShown: !Platform.isTV, headerStyle: { backgroundColor: "#171717" }, headerTintColor: "white", contentStyle: { backgroundColor: "#171717" }, @@ -62,7 +62,7 @@ export default function WatchlistsLayout() { options={{ title: t("watchlists.edit_title"), presentation: "modal", - headerShown: true, + headerShown: !Platform.isTV, headerStyle: { backgroundColor: "#171717" }, headerTintColor: "white", contentStyle: { backgroundColor: "#171717" }, diff --git a/components/stacks/NestedTabPageStack.tsx b/components/stacks/NestedTabPageStack.tsx index db0f9b96..d17e6b8d 100644 --- a/components/stacks/NestedTabPageStack.tsx +++ b/components/stacks/NestedTabPageStack.tsx @@ -12,7 +12,7 @@ type ICommonScreenOptions = export const commonScreenOptions: ICommonScreenOptions = { title: "", - headerShown: true, + headerShown: !Platform.isTV, headerTransparent: Platform.OS === "ios", headerShadowVisible: false, headerBlurEffect: "none",