-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy path_layout.tsx
More file actions
47 lines (44 loc) · 1.2 KB
/
_layout.tsx
File metadata and controls
47 lines (44 loc) · 1.2 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
import { Tabs } from 'expo-router';
import React from 'react';
import { ListIcon, TestTubeIcon } from '@/components/icons';
import { Colors } from '@/constants/Colors';
import { useColorScheme } from '@/hooks/useColorScheme';
export default function TabLayout() {
const colorScheme = useColorScheme();
return (
<Tabs
screenOptions={{
tabBarActiveTintColor: Colors[colorScheme ?? 'light'].tint,
headerShown: false,
}}
>
<Tabs.Screen
name="index"
options={{
title: 'All icons',
tabBarIcon: ({ color, focused }) => (
<ListIcon weight={focused ? 'fill' : 'light'} color={color} />
),
}}
/>
<Tabs.Screen
name="test-lab"
options={{
title: 'Test Lab',
tabBarIcon: ({ color, focused }) => (
<TestTubeIcon weight={focused ? 'fill' : 'light'} color={color} />
),
}}
/>
<Tabs.Screen
name="single-imports"
options={{
title: 'Single',
tabBarIcon: ({ color, focused }) => (
<TestTubeIcon weight={focused ? 'fill' : 'light'} color={color} />
),
}}
/>
</Tabs>
);
}