-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_layout.tsx
More file actions
56 lines (54 loc) · 2.06 KB
/
Copy path_layout.tsx
File metadata and controls
56 lines (54 loc) · 2.06 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
49
50
51
52
53
54
55
56
import FontAwesome from '@expo/vector-icons/FontAwesome';
import { Link, Tabs } from 'expo-router';
// You can explore the built-in icon families and icons on the web at https://icons.expo.fyi/
function TabBarIcon(props: { name: React.ComponentProps<typeof FontAwesome>['name']; color: string }) {
return <FontAwesome size={28} style={{ marginBottom: -3 }} {...props} />;
}
export default function TabLayout() {
return (
<Tabs
screenOptions={{
//tabBarActiveTintColor: Colors[colorScheme ?? 'light'].tint,
// Force header to be completely hidden for all tabs
headerShown: false,
}}
>
<Tabs.Screen
name="index"
options={{
title: 'Home',
// We'll handle headers manually in each screen component
tabBarIcon: ({ color }: { color: string }) => <TabBarIcon name="code" color={color} />,
}}
/>
<Tabs.Screen
name="jobs"
options={{
title: 'Jobs',
tabBarIcon: ({ color }: { color: string }) => <TabBarIcon name="briefcase" color={color} />,
}}
/>
<Tabs.Screen
name="settings"
options={{
title: 'Settings',
tabBarIcon: ({ color }: { color: string }) => <TabBarIcon name="cog" color={color} />,
}}
/>
<Tabs.Screen
name="cellular"
options={{
title: 'Cellular',
tabBarIcon: ({ color }: { color: string }) => <TabBarIcon name="phone" color={color} />,
}}
/>
<Tabs.Screen
name="permissions"
options={{
title: 'Permissions',
tabBarIcon: ({ color }: { color: string }) => <TabBarIcon name="shield" color={color} />,
}}
/>
</Tabs>
);
}