commits
tags
import { Tabs } from 'expo-router'
import { Home, CalendarDays, BookOpen, Apple, User } from 'lucide-react-native'
import { useTheme } from '../../src/hooks/useTheme'
export default function TabLayout() {
const theme = useTheme()
return (
<Tabs
screenOptions={{
headerShown: false,
tabBarStyle: {
backgroundColor: theme.nav,
borderTopColor: theme.border,
borderTopWidth: 1,
height: 72,
paddingBottom: 12,
paddingTop: 10,
},
tabBarActiveTintColor: theme.accent,
tabBarInactiveTintColor: theme.muted,
tabBarLabelStyle: { fontSize: 11, fontWeight: '600' },
}}
>
<Tabs.Screen
name="index"
options={{
title: 'Hem',
tabBarIcon: ({ color, size }) => <Home size={size} color={color} />,
}}
/>
<Tabs.Screen
name="schedule"
options={{
title: 'Schema',
tabBarIcon: ({ color, size }) => <CalendarDays size={size} color={color} />,
}}
/>
<Tabs.Screen
name="library"
options={{
title: 'Bibliotek',
tabBarIcon: ({ color, size }) => <BookOpen size={size} color={color} />,
}}
/>
<Tabs.Screen
name="nutrition"
options={{
title: 'Kost',
tabBarIcon: ({ color, size }) => <Apple size={size} color={color} />,
}}
/>
<Tabs.Screen
name="profile"
options={{
title: 'Profil',
tabBarIcon: ({ color, size }) => <User size={size} color={color} />,
}}
/>
</Tabs>
)
}