mirror of
https://github.com/Sosokker/chefhai.git
synced 2025-12-19 05:54:08 +01:00
60 lines
1.4 KiB
TypeScript
60 lines
1.4 KiB
TypeScript
import { Tabs } from "expo-router";
|
|
|
|
import { HapticTab } from "@/components/HapticTab";
|
|
import { IconSymbol } from "@/components/ui/IconSymbol";
|
|
|
|
export default function TabLayout() {
|
|
return (
|
|
<Tabs
|
|
screenOptions={{
|
|
tabBarActiveTintColor: "#FF0000", // Red active color
|
|
headerShown: false,
|
|
tabBarButton: HapticTab,
|
|
tabBarStyle: {
|
|
backgroundColor: "#FFCC00", // Yellow background
|
|
height: 60,
|
|
paddingBottom: 5,
|
|
borderTopWidth: 0,
|
|
},
|
|
}}
|
|
>
|
|
<Tabs.Screen
|
|
name="index"
|
|
options={{
|
|
title: "Home",
|
|
tabBarIcon: ({ color }) => (
|
|
<IconSymbol size={28} name="house.fill" color={color} />
|
|
),
|
|
}}
|
|
/>
|
|
<Tabs.Screen
|
|
name="recipes"
|
|
options={{
|
|
title: "Recipes",
|
|
tabBarIcon: ({ color }) => (
|
|
<IconSymbol size={28} name="doc.text.fill" color={color} />
|
|
),
|
|
}}
|
|
/>
|
|
<Tabs.Screen
|
|
name="forum"
|
|
options={{
|
|
title: "Forum",
|
|
tabBarIcon: ({ color }) => (
|
|
<IconSymbol size={28} name="hand.thumbsup.fill" color={color} />
|
|
),
|
|
}}
|
|
/>
|
|
<Tabs.Screen
|
|
name="profile"
|
|
options={{
|
|
title: "Profile",
|
|
tabBarIcon: ({ color }) => (
|
|
<IconSymbol size={28} name="person.fill" color={color} />
|
|
),
|
|
}}
|
|
/>
|
|
</Tabs>
|
|
);
|
|
}
|