110 lines
2.8 KiB
TypeScript

import { Tabs } from "expo-router";
import { useColorScheme } from "react-native";
import { Colors } from "@/constants/theme";
import { MaterialIcons } from "@expo/vector-icons";
export default function TabLayout() {
const colorScheme = useColorScheme() ?? "dark";
const colors = Colors[colorScheme];
return (
<Tabs
screenOptions={{
tabBarActiveTintColor: colors.tint,
tabBarInactiveTintColor: colors.tabIconDefault,
tabBarStyle: {
backgroundColor: colors.card,
borderTopColor: colors.border,
},
headerStyle: {
backgroundColor: colors.card,
},
headerTintColor: colors.text,
headerShadowVisible: false,
}}
>
<Tabs.Screen
name="index"
options={{
title: "Home",
tabBarIcon: ({ color, size }) => (
<MaterialIcons name="account-balance-wallet" size={size} color={color} />
),
}}
/>
<Tabs.Screen
name="send"
options={{
title: "Send",
tabBarIcon: ({ color, size }) => (
<MaterialIcons name="arrow-upward" size={size} color={color} />
),
}}
/>
<Tabs.Screen
name="receive"
options={{
title: "Receive",
tabBarIcon: ({ color, size }) => (
<MaterialIcons name="arrow-downward" size={size} color={color} />
),
}}
/>
<Tabs.Screen
name="privacy"
options={{
title: "Privacy",
tabBarIcon: ({ color, size }) => (
<MaterialIcons name="shield" size={size} color={color} />
),
}}
/>
<Tabs.Screen
name="governance"
options={{
title: "Gov",
tabBarIcon: ({ color, size }) => (
<MaterialIcons name="how-to-vote" size={size} color={color} />
),
}}
/>
<Tabs.Screen
name="agents"
options={{
title: "Agents",
tabBarIcon: ({ color, size }) => (
<MaterialIcons name="smart-toy" size={size} color={color} />
),
}}
/>
<Tabs.Screen
name="dex"
options={{
title: "DEX",
tabBarIcon: ({ color, size }) => (
<MaterialIcons name="swap-horiz" size={size} color={color} />
),
}}
/>
<Tabs.Screen
name="tasks"
options={{
title: "Tasks",
tabBarIcon: ({ color, size }) => (
<MaterialIcons name="assignment" size={size} color={color} />
),
}}
/>
<Tabs.Screen
name="settings"
options={{
title: "Settings",
tabBarIcon: ({ color, size }) => (
<MaterialIcons name="settings" size={size} color={color} />
),
}}
/>
</Tabs>
);
}