import { nestedTabPageScreenOptions } from "@/components/stacks/NestedTabPageStack"; import { Feather } from "@expo/vector-icons"; import { Stack, useRouter } from "expo-router"; import { Platform, TouchableOpacity, View } from "react-native"; import { useTranslation } from "react-i18next"; import { lazy } from "react"; // const Chromecast = !Platform.isTV ? require("@/components/Chromecast") : null; const Chromecast = lazy(() => import("@/components/Chromecast")); export default function IndexLayout() { const router = useRouter(); const { t } = useTranslation(); return ( ( {!Platform.isTV && ( <> { router.push("/(auth)/settings"); }} > )} ), }} /> {Object.entries(nestedTabPageScreenOptions).map(([name, options]) => ( ))} ); }