-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path_layout.tsx
More file actions
48 lines (46 loc) · 1.16 KB
/
Copy path_layout.tsx
File metadata and controls
48 lines (46 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/**
* @AngelaMos | 2026
* _layout.tsx
*/
import { Tabs } from 'expo-router'
import { Home, Settings } from 'lucide-react-native'
import type React from 'react'
import { colors } from '@/theme/tokens'
export default function TabsLayout(): React.ReactElement {
return (
<Tabs
screenOptions={{
headerShown: false,
tabBarStyle: {
backgroundColor: colors.bgDefault.val,
borderTopColor: colors.borderDefault.val,
borderTopWidth: 1,
height: 84,
paddingBottom: 28,
paddingTop: 12,
},
tabBarActiveTintColor: colors.accent.val,
tabBarInactiveTintColor: colors.textMuted.val,
tabBarLabelStyle: {
fontSize: 12,
fontWeight: '500',
},
}}
>
<Tabs.Screen
name="home"
options={{
title: 'Home',
tabBarIcon: ({ color, size }) => <Home size={size} color={color} />,
}}
/>
<Tabs.Screen
name="settings"
options={{
title: 'Settings',
tabBarIcon: ({ color, size }) => <Settings size={size} color={color} />,
}}
/>
</Tabs>
)
}