import React 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 }) { const icons: Record = { Library: "📚", Search: "🔍", Settings: "⚙️", }; return ( {icons[label] ?? "●"} ); } export function MainNavigator() { return ( ( ), }} /> ( ), }} /> ( ), }} /> ); }