-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path_layout.tsx
More file actions
48 lines (46 loc) · 1.17 KB
/
_layout.tsx
File metadata and controls
48 lines (46 loc) · 1.17 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
import FontAwesome from "@expo/vector-icons/FontAwesome";
import { Tabs } from "expo-router";
function TabBarIcon(props: {
name: React.ComponentProps<typeof FontAwesome>["name"];
color: string;
}) {
return <FontAwesome size={24} style={{ marginBottom: -3 }} {...props} />;
}
export default function TabLayout() {
return (
<Tabs
screenOptions={{
tabBarActiveTintColor: "#16a34a",
}}
>
<Tabs.Screen
name="index"
options={{
title: "Wallet",
tabBarIcon: ({ color }) => <TabBarIcon name="credit-card" color={color} />,
}}
/>
<Tabs.Screen
name="vouchers"
options={{
title: "Vouchers",
tabBarIcon: ({ color }) => <TabBarIcon name="th-large" color={color} />,
}}
/>
<Tabs.Screen
name="scan"
options={{
title: "Scan",
tabBarIcon: ({ color }) => <TabBarIcon name="qrcode" color={color} />,
}}
/>
<Tabs.Screen
name="profile"
options={{
title: "Profile",
tabBarIcon: ({ color }) => <TabBarIcon name="user" color={color} />,
}}
/>
</Tabs>
);
}