feat: setup navigation structure with Expo Router

This commit is contained in:
Antoni Nuñez Romeu
2026-07-06 10:53:52 +02:00
parent ea9bbaed04
commit 1b9fd16b9b
7 changed files with 147 additions and 3 deletions
+23
View File
@@ -0,0 +1,23 @@
import { Stack } from 'expo-router';
import { StatusBar } from 'expo-status-bar';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import { GestureHandlerRootView } from 'react-native-gesture-handler';
const queryClient = new QueryClient();
export default function RootLayout() {
return (
<GestureHandlerRootView style={{ flex: 1 }}>
<QueryClientProvider client={queryClient}>
<Stack>
<Stack.Screen name="(tabs)" options={{ headerShown: false }} />
<Stack.Screen name="medicine/[id]" options={{ title: 'Medicamento' }} />
<Stack.Screen name="pharmacy/[id]" options={{ title: 'Farmacia' }} />
<Stack.Screen name="auth/login" options={{ title: 'Iniciar Sesión' }} />
<Stack.Screen name="auth/register" options={{ title: 'Registrarse' }} />
</Stack>
<StatusBar style="auto" />
</QueryClientProvider>
</GestureHandlerRootView>
);
}