import { type ReactNode } from "react"; import { createBottomTabNavigator } from "@react-navigation/bottom-tabs"; import { Text } from "react-native"; import LibraryScreen from "../screens/LibraryScreen"; import SearchScreen from "../screens/SearchScreen"; import SettingsScreen from "../screens/SettingsScreen"; export type MainTabParamList = { Library: undefined; Search: undefined; Settings: undefined; }; const Tab = createBottomTabNavigator(); function TabIcon({ label, focused }: { label: string; focused: boolean }) { return ( {label === "Library" ? "📚" : label === "Search" ? "🔍" : "⚙️"} ); } export default function MainTabs(): ReactNode { return ( ({ tabBarIcon: ({ focused }: { focused: boolean }) => ( ), tabBarActiveTintColor: "#4f8ef7", tabBarInactiveTintColor: "#888", headerStyle: { backgroundColor: "#1a1a2e" }, headerTintColor: "#fff", tabBarStyle: { backgroundColor: "#1a1a2e", borderTopColor: "#333" }, })} > ); }