|
1 | 1 | import { Tabs } from 'expo-router'; |
| 2 | +import { Home, Search, Ticket, User } from 'lucide-react-native'; |
2 | 3 |
|
3 | 4 | export default function TabLayout() { |
4 | 5 | return ( |
5 | | - <Tabs screenOptions={{ headerShown: false }}> |
6 | | - <Tabs.Screen name="home/index" options={{ title: 'Home' }} /> |
7 | | - <Tabs.Screen name="search/index" options={{ title: 'Search' }} /> |
8 | | - <Tabs.Screen name="events/index" options={{ title: 'Events' }} /> |
| 6 | + <Tabs |
| 7 | + screenOptions={{ |
| 8 | + headerShown: false, |
| 9 | + tabBarShowLabel: false, |
| 10 | + tabBarStyle: { |
| 11 | + height: 60, |
| 12 | + paddingTop: 6, |
| 13 | + paddingBottom: 6, |
| 14 | + }, |
| 15 | + tabBarActiveTintColor: '#22c55e', |
| 16 | + tabBarInactiveTintColor: '#9ca3af', |
| 17 | + }} |
| 18 | + > |
| 19 | + <Tabs.Screen |
| 20 | + name="home/index" |
| 21 | + options={{ |
| 22 | + title: 'Home', |
| 23 | + tabBarIcon: ({ color, size }) => ( |
| 24 | + <Home color={color} size={size} strokeWidth={1} /> |
| 25 | + ), |
| 26 | + }} |
| 27 | + /> |
| 28 | + <Tabs.Screen |
| 29 | + name="search/index" |
| 30 | + options={{ |
| 31 | + title: 'Search', |
| 32 | + tabBarIcon: ({ color, size }) => ( |
| 33 | + <Search color={color} size={size} strokeWidth={1} /> |
| 34 | + ), |
| 35 | + }} |
| 36 | + /> |
| 37 | + <Tabs.Screen |
| 38 | + name="events/index" |
| 39 | + options={{ |
| 40 | + title: 'Events', |
| 41 | + tabBarIcon: ({ color, size }) => ( |
| 42 | + <Ticket color={color} size={size} strokeWidth={1} /> |
| 43 | + ), |
| 44 | + }} |
| 45 | + /> |
9 | 46 | <Tabs.Screen name="events/[id]" options={{ href: null }} /> |
10 | | - <Tabs.Screen name="profile/index" options={{ title: 'Profile' }} /> |
| 47 | + <Tabs.Screen |
| 48 | + name="profile/index" |
| 49 | + options={{ |
| 50 | + title: 'Profile', |
| 51 | + tabBarIcon: ({ color, size }) => ( |
| 52 | + <User color={color} size={size} strokeWidth={1} /> |
| 53 | + ), |
| 54 | + }} |
| 55 | + /> |
| 56 | + <Tabs.Screen name="events/create" options={{ href: null }} /> |
11 | 57 | </Tabs> |
12 | 58 | ); |
13 | 59 | } |
0 commit comments