|
@@ -0,0 +1,44 @@
|
|
|
+import { Link } from "expo-router";
|
|
|
+import { useState } from "react";
|
|
|
+import {Button, Text, TouchableOpacity, View} from "react-native";
|
|
|
+import {useRouter} from "expo-router"
|
|
|
+
|
|
|
+export default function Contato(){
|
|
|
+ const router = useRouter()
|
|
|
+ const [mensagem, setMensagem ] = useState("")
|
|
|
+
|
|
|
+ function irParaHome()
|
|
|
+ {
|
|
|
+ if(router.canDismiss()){
|
|
|
+ router.dismissAll();
|
|
|
+ }
|
|
|
+ router.push("/")
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ return (
|
|
|
+ <View style={{flex:1, padding:20}}>
|
|
|
+ <View style={{flex:1, gap:10}}>
|
|
|
+ <Text style= {{ fontSize:24, }}>Contato</Text>
|
|
|
+
|
|
|
+ <Button Style = {{Backgroundcolor: "red"}}
|
|
|
+ title="Enviar mensagem!!"
|
|
|
+ onPress={()=> setMensagem("Mensagem eviada com sucesso!!!")
|
|
|
+
|
|
|
+ }/>
|
|
|
+ <Text>{mensagem}</Text>
|
|
|
+
|
|
|
+ </View>
|
|
|
+ <View style={{
|
|
|
+ flex:1,
|
|
|
+ justifyContent: 'flex-end',
|
|
|
+ gap: 10
|
|
|
+ }}>
|
|
|
+
|
|
|
+ <Button title = "Ir para home"
|
|
|
+ onPress={irParaHome}/>
|
|
|
+
|
|
|
+ </View>
|
|
|
+ </View>
|
|
|
+ )
|
|
|
+}
|