import { MaterialCommunityIcons } from "@expo/vector-icons"; import { Tabs } from "expo-router"; import { Image, type ImageSourcePropType, View } from "react-native"; import { icons } from "@/constants"; import { useT } from "@/lib/i18n"; import { useTheme } from "@/lib/theme"; const TabIcon = ({ source, focused, alt, }: { source: ImageSourcePropType; alt: string; focused: boolean; }) => ( {alt} ); // Settings uses a vector glyph (MaterialCommunityIcons "cog") instead of a PNG // asset, so it gets its own icon renderer that matches the pill styling. const TabIconVector = ({ name, focused, }: { name: React.ComponentProps["name"]; focused: boolean; }) => ( ); const TabsLayout = () => { const { isDark } = useTheme(); const t = useT(); return ( ( ), }} /> ( ), }} /> ( ), }} /> ( ), }} /> ( ), }} /> ); }; export default TabsLayout;