forked from Ninjalama/streamyfin_mirror
51 lines
1.6 KiB
TypeScript
51 lines
1.6 KiB
TypeScript
import { Chromecast } from "@/components/Chromecast";
|
|
import { Feather } from "@expo/vector-icons";
|
|
import { Stack, useRouter } from "expo-router";
|
|
import { Platform, View } from "react-native";
|
|
import { TouchableOpacity } from "react-native";
|
|
|
|
export default function IndexLayout() {
|
|
const router = useRouter();
|
|
return (
|
|
<Stack>
|
|
<Stack.Screen
|
|
name="index"
|
|
options={{
|
|
headerShown: true,
|
|
headerLargeTitle: true,
|
|
headerTitle: "Home",
|
|
headerBlurEffect: "prominent",
|
|
headerTransparent: Platform.OS === "ios" ? true : false,
|
|
headerShadowVisible: false,
|
|
headerLeft: () => (
|
|
<TouchableOpacity
|
|
style={{
|
|
marginRight: Platform.OS === "android" ? 17 : 0,
|
|
}}
|
|
onPress={() => {
|
|
router.push("/(auth)/downloads");
|
|
}}
|
|
>
|
|
<Feather name="download" color={"white"} size={22} />
|
|
</TouchableOpacity>
|
|
),
|
|
headerRight: () => (
|
|
<View className="flex flex-row items-center space-x-2">
|
|
<Chromecast />
|
|
<TouchableOpacity
|
|
onPress={() => {
|
|
router.push("/(auth)/settings");
|
|
}}
|
|
>
|
|
<View className="h-10 aspect-square flex items-center justify-center rounded">
|
|
<Feather name="settings" color={"white"} size={22} />
|
|
</View>
|
|
</TouchableOpacity>
|
|
</View>
|
|
),
|
|
}}
|
|
/>
|
|
</Stack>
|
|
);
|
|
}
|