Files
workspace/code/app/base-app/app/(tabs)/_layout.tsx
T
2025-10-24 17:27:35 +08:00

24 lines
645 B
TypeScript

import FontAwesome from '@expo/vector-icons/FontAwesome'
import { Tabs } from 'expo-router'
export default function TabLayout() {
return (
<Tabs screenOptions={{ tabBarActiveTintColor: 'blue', tabBarShowLabel: false }}>
<Tabs.Screen
name="index"
options={{
headerShown: false,
tabBarIcon: ({ color }) => <FontAwesome size={28} name="home" color={color} />,
}}
/>
<Tabs.Screen
name="settings"
options={{
headerShown: false,
tabBarIcon: ({ color }) => <FontAwesome size={28} name="cog" color={color} />,
}}
/>
</Tabs>
)
}