2026-04-18 15:46:38 +07:00
|
|
|
import { Tabs } from "expo-router";
|
|
|
|
|
import { Ionicons } from "@expo/vector-icons";
|
2026-04-18 14:06:12 +07:00
|
|
|
|
|
|
|
|
export default function TabLayout() {
|
|
|
|
|
return (
|
|
|
|
|
<Tabs
|
|
|
|
|
screenOptions={{
|
|
|
|
|
headerShown: false,
|
2026-04-18 15:46:38 +07:00
|
|
|
tabBarActiveTintColor: "#2563EB",
|
|
|
|
|
tabBarInactiveTintColor: "#9CA3AF",
|
|
|
|
|
tabBarStyle: {
|
|
|
|
|
height: 65,
|
|
|
|
|
paddingBottom: 8,
|
|
|
|
|
paddingTop: 8,
|
|
|
|
|
},
|
|
|
|
|
}}
|
|
|
|
|
>
|
2026-04-18 14:06:12 +07:00
|
|
|
<Tabs.Screen
|
|
|
|
|
name="index"
|
|
|
|
|
options={{
|
2026-04-18 15:46:38 +07:00
|
|
|
title: "Home",
|
|
|
|
|
tabBarIcon: ({ color, size }) => (
|
|
|
|
|
<Ionicons name="home" size={size} color={color} />
|
|
|
|
|
),
|
|
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
<Tabs.Screen
|
|
|
|
|
name="history"
|
|
|
|
|
options={{
|
|
|
|
|
title: "History",
|
|
|
|
|
tabBarIcon: ({ color, size }) => (
|
|
|
|
|
<Ionicons name="time" size={size} color={color} />
|
|
|
|
|
),
|
2026-04-18 14:06:12 +07:00
|
|
|
}}
|
|
|
|
|
/>
|
2026-04-18 15:46:38 +07:00
|
|
|
|
2026-04-18 14:06:12 +07:00
|
|
|
<Tabs.Screen
|
2026-04-18 15:46:38 +07:00
|
|
|
name="profile"
|
2026-04-18 14:06:12 +07:00
|
|
|
options={{
|
2026-04-18 15:46:38 +07:00
|
|
|
title: "Profile",
|
|
|
|
|
tabBarIcon: ({ color, size }) => (
|
|
|
|
|
<Ionicons name="person" size={size} color={color} />
|
|
|
|
|
),
|
2026-04-18 14:06:12 +07:00
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
|
</Tabs>
|
|
|
|
|
);
|
2026-04-18 15:46:38 +07:00
|
|
|
}
|