summaryrefslogtreecommitdiffstats
path: root/src/app/index.tsx
blob: cf5f7c1139bc53caa129e45e41f345333fc51707 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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>
  );
}