mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-03-20 16:26:24 +00:00
fix: fix home and header nav not showing (#499)
This commit is contained in:
@@ -3,9 +3,7 @@ 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"));
|
||||
const Chromecast = !Platform.isTV ? require("@/components/Chromecast") : null;
|
||||
|
||||
export default function IndexLayout() {
|
||||
const router = useRouter();
|
||||
@@ -28,7 +26,7 @@ export default function IndexLayout() {
|
||||
<View className="flex flex-row items-center space-x-2">
|
||||
{!Platform.isTV && (
|
||||
<>
|
||||
<Chromecast />
|
||||
<Chromecast.Chromecast />
|
||||
<TouchableOpacity
|
||||
onPress={() => {
|
||||
router.push("/(auth)/settings");
|
||||
|
||||
Reference in New Issue
Block a user