diff --git a/frontend-mobile/app/(tabs)/_layout.tsx b/frontend-mobile/app/(tabs)/_layout.tsx new file mode 100644 index 0000000..f95d92c --- /dev/null +++ b/frontend-mobile/app/(tabs)/_layout.tsx @@ -0,0 +1,41 @@ +import { Tabs } from 'expo-router'; +import { Ionicons } from '@expo/vector-icons'; + +export default function TabLayout() { + return ( + + ( + + ), + }} + /> + ( + + ), + }} + /> + ( + + ), + }} + /> + + ); +} diff --git a/frontend-mobile/app/(tabs)/index.tsx b/frontend-mobile/app/(tabs)/index.tsx new file mode 100644 index 0000000..fc02caf --- /dev/null +++ b/frontend-mobile/app/(tabs)/index.tsx @@ -0,0 +1,29 @@ +import { View, Text, StyleSheet } from 'react-native'; + +export default function HomeScreen() { + return ( + + FarmaFinder + Busca medicamentos + + ); +} + +const styles = StyleSheet.create({ + container: { + flex: 1, + justifyContent: 'center', + alignItems: 'center', + backgroundColor: '#F2F2F7', + }, + title: { + fontSize: 28, + fontWeight: 'bold', + color: '#1C1C1E', + }, + subtitle: { + fontSize: 16, + color: '#8E8E93', + marginTop: 8, + }, +}); diff --git a/frontend-mobile/app/(tabs)/map.tsx b/frontend-mobile/app/(tabs)/map.tsx new file mode 100644 index 0000000..4d9f4c3 --- /dev/null +++ b/frontend-mobile/app/(tabs)/map.tsx @@ -0,0 +1,23 @@ +import { View, Text, StyleSheet } from 'react-native'; + +export default function MapScreen() { + return ( + + Mapa de Farmacias + + ); +} + +const styles = StyleSheet.create({ + container: { + flex: 1, + justifyContent: 'center', + alignItems: 'center', + backgroundColor: '#F2F2F7', + }, + title: { + fontSize: 24, + fontWeight: 'bold', + color: '#1C1C1E', + }, +}); diff --git a/frontend-mobile/app/(tabs)/profile.tsx b/frontend-mobile/app/(tabs)/profile.tsx new file mode 100644 index 0000000..d9b088f --- /dev/null +++ b/frontend-mobile/app/(tabs)/profile.tsx @@ -0,0 +1,23 @@ +import { View, Text, StyleSheet } from 'react-native'; + +export default function ProfileScreen() { + return ( + + Perfil + + ); +} + +const styles = StyleSheet.create({ + container: { + flex: 1, + justifyContent: 'center', + alignItems: 'center', + backgroundColor: '#F2F2F7', + }, + title: { + fontSize: 24, + fontWeight: 'bold', + color: '#1C1C1E', + }, +}); diff --git a/frontend-mobile/app/_layout.tsx b/frontend-mobile/app/_layout.tsx new file mode 100644 index 0000000..9440380 --- /dev/null +++ b/frontend-mobile/app/_layout.tsx @@ -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 ( + + + + + + + + + + + + + ); +} diff --git a/frontend-mobile/package.json b/frontend-mobile/package.json index 5d9d9cb..4428218 100644 --- a/frontend-mobile/package.json +++ b/frontend-mobile/package.json @@ -1,7 +1,7 @@ { "name": "frontend-mobile", "version": "1.0.0", - "main": "index.ts", + "main": "expo-router/entry", "dependencies": { "@react-native-async-storage/async-storage": "2.2.0", "@tanstack/react-query": "^5.101.2", diff --git a/frontend-mobile/tsconfig.json b/frontend-mobile/tsconfig.json index afc4d25..65601c0 100644 --- a/frontend-mobile/tsconfig.json +++ b/frontend-mobile/tsconfig.json @@ -4,8 +4,13 @@ "strict": true, "baseUrl": ".", "paths": { - "@/*": ["./*"] + "@/*": [ + "./*" + ] } }, - "include": ["**/*.ts", "**/*.tsx", ".expo/types/**/*.ts", "expo-env.d.ts"] + "include": [ + "**/*.ts", + "**/*.tsx" + ] }