mirror of
https://github.com/Sosokker/chefhai.git
synced 2025-12-19 05:54:08 +01:00
81 lines
1.8 KiB
TypeScript
81 lines
1.8 KiB
TypeScript
import { Ionicons, MaterialCommunityIcons } from "@expo/vector-icons";
|
|
import { Tabs } from "expo-router";
|
|
|
|
export default function TabLayout() {
|
|
return (
|
|
<Tabs
|
|
screenOptions={{
|
|
tabBarStyle: {
|
|
backgroundColor: "#ffd60a",
|
|
height: 70,
|
|
borderTopLeftRadius: 0,
|
|
borderTopRightRadius: 0,
|
|
position: "absolute",
|
|
bottom: 0,
|
|
left: 0,
|
|
right: 0,
|
|
elevation: 0,
|
|
borderTopWidth: 0,
|
|
},
|
|
tabBarActiveTintColor: "#bb0718",
|
|
tabBarInactiveTintColor: "#bb0718",
|
|
tabBarShowLabel: true,
|
|
tabBarLabelStyle: {
|
|
fontSize: 12,
|
|
fontWeight: "500",
|
|
},
|
|
headerShown: false,
|
|
}}
|
|
>
|
|
<Tabs.Screen
|
|
name="index"
|
|
options={{
|
|
title: "Home",
|
|
tabBarIcon: ({ color }) => (
|
|
<Ionicons name="home-outline" size={24} color={color} />
|
|
),
|
|
}}
|
|
/>
|
|
|
|
<Tabs.Screen
|
|
name="recipes"
|
|
options={{
|
|
title: "Recipes",
|
|
tabBarIcon: ({ color }) => (
|
|
<MaterialCommunityIcons
|
|
name="notebook-outline"
|
|
size={24}
|
|
color={color}
|
|
/>
|
|
),
|
|
}}
|
|
/>
|
|
|
|
<Tabs.Screen
|
|
name="forum"
|
|
options={{
|
|
title: "Forum",
|
|
tabBarIcon: ({ color }) => (
|
|
<MaterialCommunityIcons
|
|
name="forum-outline"
|
|
size={24}
|
|
color={color}
|
|
/>
|
|
),
|
|
}}
|
|
/>
|
|
|
|
<Tabs.Screen
|
|
name="profile"
|
|
name="profile"
|
|
options={{
|
|
title: "Profile",
|
|
tabBarIcon: ({ color }) => (
|
|
<Ionicons name="person-outline" size={24} color={color} />
|
|
),
|
|
}}
|
|
/>
|
|
</Tabs>
|
|
);
|
|
}
|