mirror of
https://github.com/streamyfin/streamyfin.git
synced 2025-08-20 18:37:18 +02:00
Signed-off-by: Lance Chant <13349722+lancechant@users.noreply.github.com> Signed-off-by: lancechant <13349722+lancechant@users.noreply.github.com> Co-authored-by: Fredrik Burmester <fredrik.burmester@gmail.com> Co-authored-by: Uruk <contact@uruk.dev> Co-authored-by: Gauvain <68083474+Gauvino@users.noreply.github.com>
56 lines
1.6 KiB
TypeScript
56 lines
1.6 KiB
TypeScript
import { Stack } from "expo-router";
|
|
import { useTranslation } from "react-i18next";
|
|
import { Platform } from "react-native";
|
|
import {
|
|
commonScreenOptions,
|
|
nestedTabPageScreenOptions,
|
|
} from "@/components/stacks/NestedTabPageStack";
|
|
|
|
export default function SearchLayout() {
|
|
const { t } = useTranslation();
|
|
return (
|
|
<Stack>
|
|
<Stack.Screen
|
|
name='index'
|
|
options={{
|
|
headerShown: !Platform.isTV,
|
|
headerLargeTitle: true,
|
|
headerTitle: t("tabs.search"),
|
|
headerLargeStyle: {
|
|
backgroundColor: "black",
|
|
},
|
|
headerBlurEffect: "prominent",
|
|
headerTransparent: Platform.OS === "ios",
|
|
headerShadowVisible: false,
|
|
}}
|
|
/>
|
|
{Object.entries(nestedTabPageScreenOptions).map(([name, options]) => (
|
|
<Stack.Screen key={name} name={name} options={options} />
|
|
))}
|
|
<Stack.Screen
|
|
name='collections/[collectionId]'
|
|
options={{
|
|
title: "",
|
|
headerShown: !Platform.isTV,
|
|
headerBlurEffect: "prominent",
|
|
headerTransparent: Platform.OS === "ios",
|
|
headerShadowVisible: false,
|
|
}}
|
|
/>
|
|
<Stack.Screen name='jellyseerr/page' options={commonScreenOptions} />
|
|
<Stack.Screen
|
|
name='jellyseerr/person/[personId]'
|
|
options={commonScreenOptions}
|
|
/>
|
|
<Stack.Screen
|
|
name='jellyseerr/company/[companyId]'
|
|
options={commonScreenOptions}
|
|
/>
|
|
<Stack.Screen
|
|
name='jellyseerr/genre/[genreId]'
|
|
options={commonScreenOptions}
|
|
/>
|
|
</Stack>
|
|
);
|
|
}
|