summaryrefslogtreecommitdiffstats
path: root/src/app/index.tsx
diff options
context:
space:
mode:
authorAlberto Duarte Delgado <alberto@albertoduarte.com>2026-03-25 15:32:20 +0000
committerAlberto Duarte Delgado <alberto@albertoduarte.com>2026-03-25 15:32:20 +0000
commit7809ccbba56be8c5377f94cf2d287a0e1521fdc1 (patch)
tree1c590049df5546f141eeb3bf58ad5ea9d1e0fbf6 /src/app/index.tsx
parentd071a19fdeb0fc369e356004118f59a7fe4fed91 (diff)
Initial commit: App Oficina base project
Diffstat (limited to 'src/app/index.tsx')
-rw-r--r--src/app/index.tsx39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/app/index.tsx b/src/app/index.tsx
new file mode 100644
index 0000000..cf5f7c1
--- /dev/null
+++ b/src/app/index.tsx
@@ -0,0 +1,39 @@
+import { router } from "expo-router";
+import { Button, Text, View } from "react-native";
+import { SafeAreaView } from "react-native-safe-area-context";
+
+export default function Index() {
+
+
+ function navegarGuardarPersona(){
+ console.log("ir a pantalla")
+ router.push({
+ pathname: "/GuardarPersona",
+ //params:
+ })
+ }
+
+
+ function navegarGuardarProducto(){
+ console.log("ir a pantalla")
+ router.push({
+ pathname: "/GuardarProducto",
+ //params:
+ })
+ }
+ return (
+ <SafeAreaView
+ style={{
+ flex: 1,
+ justifyContent: "center",
+ alignItems: "center",
+ }}
+ >
+
+ <Button title="crear usuario " testID="btn-crear-usuario" color={"green"} onPress={()=> navegarGuardarPersona()} />
+ {/*
+ <Button title="crear categorias y productos " testID="btn-crear-categoria-producto" color={"blue"} onPress={()=> navegarGuardarProducto()} />
+ */}
+ </SafeAreaView>
+ );
+}