feat: add default values to sign up form
This commit is contained in:
parent
692e434c90
commit
c94c437ec7
1 changed files with 9 additions and 1 deletions
|
|
@ -20,7 +20,15 @@ type FormDataProps = {
|
|||
export function SignUp() {
|
||||
const navigation = useNavigation<AuthNavigatorRoutesProps>();
|
||||
|
||||
const { control, handleSubmit } = useForm<FormDataProps>();
|
||||
const { control, handleSubmit } = useForm<FormDataProps>({
|
||||
// unnecessary because this is a registration screen
|
||||
defaultValues: {
|
||||
name: '',
|
||||
email: '',
|
||||
password: '',
|
||||
confirmPassword: '',
|
||||
},
|
||||
});
|
||||
|
||||
function handleSignUp({ name, email, password, confirmPassword }: FormDataProps) {
|
||||
console.debug({
|
||||
|
|
|
|||
Loading…
Reference in a new issue