summaryrefslogtreecommitdiff
path: root/app/(tabs)/_layout.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'app/(tabs)/_layout.tsx')
-rw-r--r--app/(tabs)/_layout.tsx37
1 files changed, 37 insertions, 0 deletions
diff --git a/app/(tabs)/_layout.tsx b/app/(tabs)/_layout.tsx
new file mode 100644
index 0000000..22a49b6
--- /dev/null
+++ b/app/(tabs)/_layout.tsx
@@ -0,0 +1,37 @@
+import { Tabs } from 'expo-router';
+import React from 'react';
+
+import { TabBarIcon } from '@/components/navigation/TabBarIcon';
+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: 'Home',
+ tabBarIcon: ({ color, focused }) => (
+ <TabBarIcon name={focused ? 'home' : 'home-outline'} color={color} />
+ ),
+ }}
+ />
+ <Tabs.Screen
+ name="explore"
+ options={{
+ title: 'Explore',
+ tabBarIcon: ({ color, focused }) => (
+ <TabBarIcon name={focused ? 'code-slash' : 'code-slash-outline'} color={color} />
+ ),
+ }}
+ />
+ </Tabs>
+ );
+}