import { useRef } from "react"; import { Platform, View } from "react-native"; import { Tabs } from "expo-router"; import Colors from "@movie-web/tailwind-config/colors"; import { MovieWebSvg } from "~/components/Icon"; import SvgTabBarIcon from "~/components/SvgTabBarIcon"; import TabBarIcon from "~/components/TabBarIcon"; import SearchTabContext from "./search/SearchTabContext"; export default function TabLayout() { // eslint-disable-next-line @typescript-eslint/no-empty-function const focusSearchInputRef = useRef(() => {}); return ( ({ tabPress: () => { switch (route.name) { case "search": focusSearchInputRef.current(); break; } }, })} screenOptions={{ headerShown: false, tabBarActiveTintColor: Colors.primary[100], tabBarStyle: { backgroundColor: Colors.secondary[700], borderTopColor: "transparent", borderTopRightRadius: 20, borderTopLeftRadius: 20, paddingBottom: Platform.select({ ios: 100 }), height: 80, }, tabBarItemStyle: { paddingVertical: 18, height: 82, }, tabBarLabelStyle: [ { marginTop: 2, }, ], }} > ( ), }} /> ( ), }} /> ( ), }} /> ( ), }} /> ( ), }} /> ); }