- Replace mobile placeholder with Expo Router app (tabs, playback, auth, library) - Move Convex backend to @otunes/convex for web and mobile reuse - Update web app imports and API routes to use shared package
69 lines
1.7 KiB
TypeScript
69 lines
1.7 KiB
TypeScript
import { Ionicons } from "@expo/vector-icons"
|
|
import { Tabs } from "expo-router"
|
|
|
|
import { useThemeColors } from "@/lib/theme"
|
|
|
|
export default function TabsLayout() {
|
|
const colors = useThemeColors()
|
|
|
|
return (
|
|
<Tabs
|
|
screenOptions={{
|
|
headerShown: false,
|
|
tabBarActiveTintColor: colors.foreground,
|
|
tabBarInactiveTintColor: colors.mutedForeground,
|
|
tabBarStyle: {
|
|
backgroundColor: colors.background,
|
|
borderTopColor: colors.border,
|
|
},
|
|
}}
|
|
>
|
|
<Tabs.Screen
|
|
name="index"
|
|
options={{
|
|
title: "Home",
|
|
tabBarIcon: ({ color, size }) => (
|
|
<Ionicons name="home" size={size} color={color} />
|
|
),
|
|
}}
|
|
/>
|
|
<Tabs.Screen
|
|
name="search"
|
|
options={{
|
|
title: "Search",
|
|
tabBarIcon: ({ color, size }) => (
|
|
<Ionicons name="search" size={size} color={color} />
|
|
),
|
|
}}
|
|
/>
|
|
<Tabs.Screen
|
|
name="library"
|
|
options={{
|
|
title: "Library",
|
|
tabBarIcon: ({ color, size }) => (
|
|
<Ionicons name="library" size={size} color={color} />
|
|
),
|
|
}}
|
|
/>
|
|
<Tabs.Screen
|
|
name="playlists"
|
|
options={{
|
|
title: "Playlists",
|
|
tabBarIcon: ({ color, size }) => (
|
|
<Ionicons name="list" size={size} color={color} />
|
|
),
|
|
}}
|
|
/>
|
|
<Tabs.Screen
|
|
name="more"
|
|
options={{
|
|
title: "More",
|
|
tabBarIcon: ({ color, size }) => (
|
|
<Ionicons name="person-circle" size={size} color={color} />
|
|
),
|
|
}}
|
|
/>
|
|
</Tabs>
|
|
)
|
|
}
|