PliWould/app/(tabs)/_layout.tsx

38 lines
1013 B
TypeScript
Raw Normal View History

import { Tabs } from 'expo-router';
import React from 'react';
import { Colors } from '@/constants/Colors';
import { useColorScheme } from '@/hooks/useColorScheme';
2024-06-27 23:31:59 +02:00
import { TabBarIcon } from '@/components/navigation/TabBarIcon';
export default function TabLayout() {
const colorScheme = useColorScheme();
return (
<Tabs
screenOptions={{
tabBarActiveTintColor: Colors[colorScheme ?? 'light'].tint,
headerShown: false,
}}>
<Tabs.Screen
name="index"
options={{
2024-06-27 23:31:59 +02:00
title: 'Conversion',
tabBarIcon: ({ color, focused }) => (
2024-06-27 23:31:59 +02:00
<TabBarIcon name={focused ? 'recording' : 'recording-outline'} color={color} />
),
}}
/>
<Tabs.Screen
2024-06-27 23:31:59 +02:00
name="product-editor"
options={{
2024-06-27 23:31:59 +02:00
title: 'Products',
tabBarIcon: ({ color, focused }) => (
2024-06-27 23:31:59 +02:00
<TabBarIcon name={focused ? 'recording' : 'recording-outline'} color={color} />
),
}}
/>
</Tabs>
);
}