summaryrefslogtreecommitdiffstats
path: root/src/app/index.tsx
diff options
context:
space:
mode:
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>
+ );
+}