fix: hide header buttons

This commit is contained in:
Fredrik Burmester
2026-01-16 08:30:33 +01:00
parent 6ba767a848
commit 9727bec7ab
4 changed files with 22 additions and 8 deletions

View File

@@ -9,7 +9,7 @@ export default function CustomMenuLayout() {
<Stack.Screen <Stack.Screen
name='index' name='index'
options={{ options={{
headerShown: Platform.OS !== "ios", headerShown: !Platform.isTV,
headerLargeTitle: true, headerLargeTitle: true,
headerTitle: t("tabs.custom_links"), headerTitle: t("tabs.custom_links"),
headerBlurEffect: "none", headerBlurEffect: "none",

View File

@@ -43,7 +43,7 @@ export default function IndexLayout() {
<Stack.Screen <Stack.Screen
name='downloads/index' name='downloads/index'
options={{ options={{
headerShown: true, headerShown: !Platform.isTV,
headerBlurEffect: "none", headerBlurEffect: "none",
headerTransparent: Platform.OS === "ios", headerTransparent: Platform.OS === "ios",
title: t("home.downloads.downloads_title"), title: t("home.downloads.downloads_title"),
@@ -62,7 +62,7 @@ export default function IndexLayout() {
name='sessions/index' name='sessions/index'
options={{ options={{
title: t("home.sessions.title"), title: t("home.sessions.title"),
headerShown: true, headerShown: !Platform.isTV,
headerBlurEffect: "none", headerBlurEffect: "none",
headerTransparent: Platform.OS === "ios", headerTransparent: Platform.OS === "ios",
headerShadowVisible: false, headerShadowVisible: false,
@@ -81,6 +81,7 @@ export default function IndexLayout() {
name='settings' name='settings'
options={{ options={{
title: t("home.settings.settings_title"), title: t("home.settings.settings_title"),
headerShown: !Platform.isTV,
headerBlurEffect: "none", headerBlurEffect: "none",
headerTransparent: Platform.OS === "ios", headerTransparent: Platform.OS === "ios",
headerShadowVisible: false, headerShadowVisible: false,
@@ -99,6 +100,7 @@ export default function IndexLayout() {
name='settings/playback-controls/page' name='settings/playback-controls/page'
options={{ options={{
title: t("home.settings.playback_controls.title"), title: t("home.settings.playback_controls.title"),
headerShown: !Platform.isTV,
headerBlurEffect: "none", headerBlurEffect: "none",
headerTransparent: Platform.OS === "ios", headerTransparent: Platform.OS === "ios",
headerShadowVisible: false, headerShadowVisible: false,
@@ -117,6 +119,7 @@ export default function IndexLayout() {
name='settings/audio-subtitles/page' name='settings/audio-subtitles/page'
options={{ options={{
title: t("home.settings.audio_subtitles.title"), title: t("home.settings.audio_subtitles.title"),
headerShown: !Platform.isTV,
headerBlurEffect: "none", headerBlurEffect: "none",
headerTransparent: Platform.OS === "ios", headerTransparent: Platform.OS === "ios",
headerShadowVisible: false, headerShadowVisible: false,
@@ -135,6 +138,7 @@ export default function IndexLayout() {
name='settings/appearance/page' name='settings/appearance/page'
options={{ options={{
title: t("home.settings.appearance.title"), title: t("home.settings.appearance.title"),
headerShown: !Platform.isTV,
headerBlurEffect: "none", headerBlurEffect: "none",
headerTransparent: Platform.OS === "ios", headerTransparent: Platform.OS === "ios",
headerShadowVisible: false, headerShadowVisible: false,
@@ -153,6 +157,7 @@ export default function IndexLayout() {
name='settings/music/page' name='settings/music/page'
options={{ options={{
title: t("home.settings.music.title"), title: t("home.settings.music.title"),
headerShown: !Platform.isTV,
headerBlurEffect: "none", headerBlurEffect: "none",
headerTransparent: Platform.OS === "ios", headerTransparent: Platform.OS === "ios",
headerShadowVisible: false, headerShadowVisible: false,
@@ -171,6 +176,7 @@ export default function IndexLayout() {
name='settings/appearance/hide-libraries/page' name='settings/appearance/hide-libraries/page'
options={{ options={{
title: t("home.settings.other.hide_libraries"), title: t("home.settings.other.hide_libraries"),
headerShown: !Platform.isTV,
headerBlurEffect: "none", headerBlurEffect: "none",
headerTransparent: Platform.OS === "ios", headerTransparent: Platform.OS === "ios",
headerShadowVisible: false, headerShadowVisible: false,
@@ -189,6 +195,7 @@ export default function IndexLayout() {
name='settings/plugins/page' name='settings/plugins/page'
options={{ options={{
title: t("home.settings.plugins.plugins_title"), title: t("home.settings.plugins.plugins_title"),
headerShown: !Platform.isTV,
headerBlurEffect: "none", headerBlurEffect: "none",
headerTransparent: Platform.OS === "ios", headerTransparent: Platform.OS === "ios",
headerShadowVisible: false, headerShadowVisible: false,
@@ -207,6 +214,7 @@ export default function IndexLayout() {
name='settings/plugins/marlin-search/page' name='settings/plugins/marlin-search/page'
options={{ options={{
title: "Marlin Search", title: "Marlin Search",
headerShown: !Platform.isTV,
headerBlurEffect: "none", headerBlurEffect: "none",
headerTransparent: Platform.OS === "ios", headerTransparent: Platform.OS === "ios",
headerShadowVisible: false, headerShadowVisible: false,
@@ -225,6 +233,7 @@ export default function IndexLayout() {
name='settings/plugins/jellyseerr/page' name='settings/plugins/jellyseerr/page'
options={{ options={{
title: "Jellyseerr", title: "Jellyseerr",
headerShown: !Platform.isTV,
headerBlurEffect: "none", headerBlurEffect: "none",
headerTransparent: Platform.OS === "ios", headerTransparent: Platform.OS === "ios",
headerShadowVisible: false, headerShadowVisible: false,
@@ -243,6 +252,7 @@ export default function IndexLayout() {
name='settings/plugins/streamystats/page' name='settings/plugins/streamystats/page'
options={{ options={{
title: "Streamystats", title: "Streamystats",
headerShown: !Platform.isTV,
headerBlurEffect: "none", headerBlurEffect: "none",
headerTransparent: Platform.OS === "ios", headerTransparent: Platform.OS === "ios",
headerShadowVisible: false, headerShadowVisible: false,
@@ -261,6 +271,7 @@ export default function IndexLayout() {
name='settings/plugins/kefinTweaks/page' name='settings/plugins/kefinTweaks/page'
options={{ options={{
title: "KefinTweaks", title: "KefinTweaks",
headerShown: !Platform.isTV,
headerBlurEffect: "none", headerBlurEffect: "none",
headerTransparent: Platform.OS === "ios", headerTransparent: Platform.OS === "ios",
headerShadowVisible: false, headerShadowVisible: false,
@@ -279,6 +290,7 @@ export default function IndexLayout() {
name='settings/intro/page' name='settings/intro/page'
options={{ options={{
title: t("home.settings.intro.title"), title: t("home.settings.intro.title"),
headerShown: !Platform.isTV,
headerBlurEffect: "none", headerBlurEffect: "none",
headerTransparent: Platform.OS === "ios", headerTransparent: Platform.OS === "ios",
headerShadowVisible: false, headerShadowVisible: false,
@@ -297,6 +309,7 @@ export default function IndexLayout() {
name='settings/logs/page' name='settings/logs/page'
options={{ options={{
title: t("home.settings.logs.logs_title"), title: t("home.settings.logs.logs_title"),
headerShown: !Platform.isTV,
headerBlurEffect: "none", headerBlurEffect: "none",
headerTransparent: Platform.OS === "ios", headerTransparent: Platform.OS === "ios",
headerShadowVisible: false, headerShadowVisible: false,
@@ -315,6 +328,7 @@ export default function IndexLayout() {
name='settings/network/page' name='settings/network/page'
options={{ options={{
title: t("home.settings.network.title"), title: t("home.settings.network.title"),
headerShown: !Platform.isTV,
headerBlurEffect: "none", headerBlurEffect: "none",
headerTransparent: Platform.OS === "ios", headerTransparent: Platform.OS === "ios",
headerShadowVisible: false, headerShadowVisible: false,
@@ -341,7 +355,7 @@ export default function IndexLayout() {
<Feather name='chevron-left' size={28} color='white' /> <Feather name='chevron-left' size={28} color='white' />
</Pressable> </Pressable>
), ),
headerShown: true, headerShown: !Platform.isTV,
headerBlurEffect: "prominent", headerBlurEffect: "prominent",
headerTransparent: Platform.OS === "ios", headerTransparent: Platform.OS === "ios",
headerShadowVisible: false, headerShadowVisible: false,

View File

@@ -40,7 +40,7 @@ export default function WatchlistsLayout() {
name='[watchlistId]' name='[watchlistId]'
options={{ options={{
title: "", title: "",
headerShown: true, headerShown: !Platform.isTV,
headerBlurEffect: "none", headerBlurEffect: "none",
headerTransparent: Platform.OS === "ios", headerTransparent: Platform.OS === "ios",
headerShadowVisible: false, headerShadowVisible: false,
@@ -51,7 +51,7 @@ export default function WatchlistsLayout() {
options={{ options={{
title: t("watchlists.create_title"), title: t("watchlists.create_title"),
presentation: "modal", presentation: "modal",
headerShown: true, headerShown: !Platform.isTV,
headerStyle: { backgroundColor: "#171717" }, headerStyle: { backgroundColor: "#171717" },
headerTintColor: "white", headerTintColor: "white",
contentStyle: { backgroundColor: "#171717" }, contentStyle: { backgroundColor: "#171717" },
@@ -62,7 +62,7 @@ export default function WatchlistsLayout() {
options={{ options={{
title: t("watchlists.edit_title"), title: t("watchlists.edit_title"),
presentation: "modal", presentation: "modal",
headerShown: true, headerShown: !Platform.isTV,
headerStyle: { backgroundColor: "#171717" }, headerStyle: { backgroundColor: "#171717" },
headerTintColor: "white", headerTintColor: "white",
contentStyle: { backgroundColor: "#171717" }, contentStyle: { backgroundColor: "#171717" },

View File

@@ -12,7 +12,7 @@ type ICommonScreenOptions =
export const commonScreenOptions: ICommonScreenOptions = { export const commonScreenOptions: ICommonScreenOptions = {
title: "", title: "",
headerShown: true, headerShown: !Platform.isTV,
headerTransparent: Platform.OS === "ios", headerTransparent: Platform.OS === "ios",
headerShadowVisible: false, headerShadowVisible: false,
headerBlurEffect: "none", headerBlurEffect: "none",