summaryrefslogtreecommitdiffstats
path: root/app/(tabs)/_layout.tsx
diff options
context:
space:
mode:
authorjciespuertodelacruz <jc.iespuertodelacruz@gmx.es>2026-01-20 08:49:52 +0000
committerjciespuertodelacruz <jc.iespuertodelacruz@gmx.es>2026-01-20 08:49:52 +0000
commitc6f2b6f85d151d6d2a2cc68eb05edd7a1e448106 (patch)
tree1080219bee426d5d1372da6c31f138482c1544d7 /app/(tabs)/_layout.tsx
Initial commit
Generated by create-expo-app 3.5.3.
Diffstat (limited to 'app/(tabs)/_layout.tsx')
-rw-r--r--app/(tabs)/_layout.tsx35
1 files changed, 35 insertions, 0 deletions
diff --git a/app/(tabs)/_layout.tsx b/app/(tabs)/_layout.tsx
new file mode 100644
index 0000000..54e11d0
--- /dev/null
+++ b/app/(tabs)/_layout.tsx
@@ -0,0 +1,35 @@
+import { Tabs } from 'expo-router';
+import React from 'react';
+
+import { HapticTab } from '@/components/haptic-tab';
+import { IconSymbol } from '@/components/ui/icon-symbol';
+import { Colors } from '@/constants/theme';
+import { useColorScheme } from '@/hooks/use-color-scheme';
+
+export default function TabLayout() {
+ const colorScheme = useColorScheme();
+
+ return (
+ <Tabs
+ screenOptions={{
+ tabBarActiveTintColor: Colors[colorScheme ?? 'light'].tint,
+ headerShown: false,
+ tabBarButton: HapticTab,
+ }}>
+ <Tabs.Screen
+ name="index"
+ options={{
+ title: 'Home',
+ tabBarIcon: ({ color }) => <IconSymbol size={28} name="house.fill" color={color} />,
+ }}
+ />
+ <Tabs.Screen
+ name="explore"
+ options={{
+ title: 'Explore',
+ tabBarIcon: ({ color }) => <IconSymbol size={28} name="paperplane.fill" color={color} />,
+ }}
+ />
+ </Tabs>
+ );
+}