diff --git a/src/screens/SignUp.tsx b/src/screens/SignUp.tsx index 9999d45..2c5865c 100644 --- a/src/screens/SignUp.tsx +++ b/src/screens/SignUp.tsx @@ -1,6 +1,6 @@ -import { useState } from 'react'; import { Center, Heading, Image, ScrollView, Text, VStack } from '@gluestack-ui/themed'; import { useNavigation } from '@react-navigation/native'; +import { Controller, useForm } from 'react-hook-form'; import BackgroundImg from '@assets/background.png'; import Logo from '@assets/logo.svg'; @@ -13,18 +13,10 @@ import { Button } from '@components/Button'; export function SignUp() { const navigation = useNavigation(); - const [name, setName] = useState(''); - const [email, setEmail] = useState(''); - const [password, setPassword] = useState(''); - const [confirmPassword, setConfirmPassword] = useState(''); + const { control } = useForm(); function handleSignUp() { - console.debug({ - name, - email, - password, - confirmPassword, - }); + // do something again } const handleGoBack = () => { @@ -54,28 +46,60 @@ export function SignUp() {
Crie sua a conta - - - ( + + )} /> - ( + + )} /> - ( + + )} + /> + + ( + + )} />