init addScreen and change locations

This commit is contained in:
Patryk
2025-04-13 09:04:31 +02:00
parent ccf7ff2955
commit 6e8a235ed4
8 changed files with 169 additions and 96 deletions

View File

@@ -5,6 +5,7 @@ import { useTheme } from 'react-native-paper';
export default function TabLayout() {
const theme = useTheme();
return (
<Tabs screenOptions ={{
tabBarInactiveTintColor: theme.colors.primary,
@@ -23,7 +24,7 @@ export default function TabLayout() {
<Tabs.Screen name="index" options={{ title: 'Home',tabBarIcon: ({ color, focused }) => (
<Ionicons name={focused ? 'home-sharp' : 'home-outline'} color={color} size={24} />
), }} />
<Tabs.Screen name="formScreen" options={{title: 'Create/Edit' ,tabBarIcon: ({ color, focused }) => (
<Tabs.Screen name="addLocation" options={{title: 'Create' ,tabBarIcon: ({ color, focused }) => (
<Ionicons name={focused ? 'add-circle-sharp' : 'add-circle-outline'} color={color} size={24} />
),}} />
</Tabs>