mobile-tabungan/app/(tabs)/_layout.tsx

49 lines
1.1 KiB
TypeScript

import { Tabs } from "expo-router";
import { Ionicons } from "@expo/vector-icons";
export default function TabLayout() {
return (
<Tabs
screenOptions={{
headerShown: false,
tabBarActiveTintColor: "#2563EB",
tabBarInactiveTintColor: "#9CA3AF",
tabBarStyle: {
height: 65,
paddingBottom: 8,
paddingTop: 8,
},
}}
>
<Tabs.Screen
name="index"
options={{
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} />
),
}}
/>
<Tabs.Screen
name="profile"
options={{
title: "Profile",
tabBarIcon: ({ color, size }) => (
<Ionicons name="person" size={size} color={color} />
),
}}
/>
</Tabs>
);
}