diff --git a/app/(auth)/(tabs)/_layout.tsx b/app/(auth)/(tabs)/_layout.tsx index 4dfc2d4b..155158d9 100644 --- a/app/(auth)/(tabs)/_layout.tsx +++ b/app/(auth)/(tabs)/_layout.tsx @@ -17,13 +17,15 @@ export default function TabLayout() { return ( + { + return null; +}; + +export default Index; diff --git a/app/(auth)/(tabs)/search/_layout.tsx b/app/(auth)/(tabs)/search/_layout.tsx index 3270a520..7aee1250 100644 --- a/app/(auth)/(tabs)/search/_layout.tsx +++ b/app/(auth)/(tabs)/search/_layout.tsx @@ -4,7 +4,7 @@ export default function SearchLayout() { return ( setSearch(e.nativeEvent.text), hideWhenScrolling: false, + autoFocus: true, }, }); }, [navigation]); @@ -79,92 +81,94 @@ export default function search() { }); return ( - - - {Platform.OS === "android" && ( - - setSearch(text)} - /> - - )} - Movies - m.Id!)} - renderItem={(data) => ( - - data={data} - renderItem={(item) => ( - router.push(`/items/${item.Id}/page`)} - > - - {item.Name} - - {item.ProductionYear} - - - )} - /> + <> + + + {Platform.OS === "android" && ( + + setSearch(text)} + /> + )} - /> - Series - m.Id!)} - renderItem={(data) => ( - - data={data} - renderItem={(item) => ( - router.push(`/series/${item.Id}/page`)} - className="flex flex-col w-32" - > - Movies + m.Id!)} + renderItem={(data) => ( + + data={data} + renderItem={(item) => ( + - {item.Name} - - {item.ProductionYear} - - - )} - /> - )} - /> - Episodes - m.Id!)} - renderItem={(data) => ( - - data={data} - renderItem={(item) => ( - router.push(`/items/${item.Id}/page`)} - className="flex flex-col w-48" - > - - - - )} - /> - )} - /> - - + className="flex flex-col w-32" + onPress={() => router.push(`/items/${item.Id}/page`)} + > + + {item.Name} + + {item.ProductionYear} + + + )} + /> + )} + /> + Series + m.Id!)} + renderItem={(data) => ( + + data={data} + renderItem={(item) => ( + router.push(`/series/${item.Id}/page`)} + className="flex flex-col w-32" + > + + {item.Name} + + {item.ProductionYear} + + + )} + /> + )} + /> + Episodes + m.Id!)} + renderItem={(data) => ( + + data={data} + renderItem={(item) => ( + router.push(`/items/${item.Id}/page`)} + className="flex flex-col w-48" + > + + + + )} + /> + )} + /> + + + ); } diff --git a/app/_layout.tsx b/app/_layout.tsx index dddfe8d8..54340338 100644 --- a/app/_layout.tsx +++ b/app/_layout.tsx @@ -20,7 +20,7 @@ import { useSettings } from "@/utils/atoms/settings"; SplashScreen.preventAutoHideAsync(); export const unstable_settings = { - initialRouteName: "(auth)/(tabs)/", + initialRouteName: "/index", }; export default function RootLayout() { @@ -80,12 +80,12 @@ function Layout() { - +