- nama page > participant Component Fix: - Base bos > clean code # No Issue
50 lines
1.2 KiB
TypeScript
50 lines
1.2 KiB
TypeScript
import { TabsStyles } from "@/styles/tabs-styles";
|
|
import { FontAwesome5, Ionicons } from "@expo/vector-icons";
|
|
import { Tabs } from "expo-router";
|
|
|
|
export default function EventTabsLayout() {
|
|
return (
|
|
<Tabs
|
|
screenOptions={TabsStyles}
|
|
>
|
|
<Tabs.Screen
|
|
name="index"
|
|
options={{
|
|
title: "Beranda",
|
|
tabBarIcon: ({ color }) => (
|
|
<Ionicons size={20} name="home" color={color} />
|
|
),
|
|
}}
|
|
/>
|
|
<Tabs.Screen
|
|
name="status"
|
|
options={{
|
|
title: "Status",
|
|
tabBarIcon: ({ color }) => (
|
|
<Ionicons size={20} name="list" color={color} />
|
|
),
|
|
}}
|
|
/>
|
|
<Tabs.Screen
|
|
name="contribution"
|
|
options={{
|
|
title: "Kontribusi",
|
|
tabBarIcon: ({ color }) => (
|
|
<Ionicons size={20} name="extension-puzzle" color={color} />
|
|
),
|
|
}}
|
|
/>
|
|
<Tabs.Screen
|
|
name="history"
|
|
options={{
|
|
title: "Riwayat",
|
|
tabBarIcon: ({ color }) => (
|
|
<FontAwesome5 size={20} name="history" color={color} />
|
|
),
|
|
}}
|
|
/>
|
|
</Tabs>
|
|
);
|
|
}
|
|
|