fix: handle TV menu and back navigation (#1559)

This commit is contained in:
Steve Byatt
2026-05-20 08:57:19 +01:00
committed by GitHub
parent 92deba14f3
commit ca4f24ded0
6 changed files with 123 additions and 189 deletions

View File

@@ -12,7 +12,7 @@ import { useTranslation } from "react-i18next";
import { Platform, View } from "react-native";
import { SystemBars } from "react-native-edge-to-edge";
import { Colors } from "@/constants/Colors";
import { useTVBackHandler } from "@/hooks/useTVBackHandler";
import { useTVHomeBackHandler } from "@/hooks/useTVBackHandler";
import { useSettings } from "@/utils/atoms/settings";
import { eventBus } from "@/utils/eventBus";
@@ -38,7 +38,7 @@ export default function TabLayout() {
const { t } = useTranslation();
// Handle TV back button - prevent app exit when at root
useTVBackHandler();
useTVHomeBackHandler();
return (
<View style={{ flex: 1 }}>