summaryrefslogtreecommitdiff
path: root/apps/mobile/app/(tabs)/_layout.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'apps/mobile/app/(tabs)/_layout.tsx')
-rw-r--r--apps/mobile/app/(tabs)/_layout.tsx58
1 files changed, 58 insertions, 0 deletions
diff --git a/apps/mobile/app/(tabs)/_layout.tsx b/apps/mobile/app/(tabs)/_layout.tsx
new file mode 100644
index 0000000..96c1a2d
--- /dev/null
+++ b/apps/mobile/app/(tabs)/_layout.tsx
@@ -0,0 +1,58 @@
+import React from 'react';
+import { Tabs } from 'expo-router';
+import { useColorScheme } from 'react-native';
+import { Ionicons } from '@expo/vector-icons';
+import { Colors } from '../../constants/Colors';
+
+export default function TabsLayout() {
+ const colorScheme = useColorScheme() ?? 'light';
+ const colors = Colors[colorScheme];
+
+ return (
+ <Tabs
+ screenOptions={{
+ tabBarActiveTintColor: colors.tint,
+ tabBarInactiveTintColor: colors.tabIconDefault,
+ tabBarStyle: {
+ backgroundColor: colors.background,
+ borderTopColor: colors.border,
+ },
+ headerStyle: {
+ backgroundColor: colors.background,
+ },
+ headerTintColor: colors.text,
+ headerTitleStyle: {
+ fontWeight: '600',
+ },
+ }}
+ >
+ <Tabs.Screen
+ name="index"
+ options={{
+ title: 'Dashboard',
+ tabBarIcon: ({ color, size }) => (
+ <Ionicons name="home" size={size} color={color} />
+ ),
+ }}
+ />
+ <Tabs.Screen
+ name="tasks"
+ options={{
+ title: 'Tasks',
+ tabBarIcon: ({ color, size }) => (
+ <Ionicons name="list" size={size} color={color} />
+ ),
+ }}
+ />
+ <Tabs.Screen
+ name="settings"
+ options={{
+ title: 'Settings',
+ tabBarIcon: ({ color, size }) => (
+ <Ionicons name="settings-outline" size={size} color={color} />
+ ),
+ }}
+ />
+ </Tabs>
+ );
+}