import { VStack, Button, FormControl, Switch } from 'native-base'; import React from 'react'; import { useForm, Controller } from 'react-hook-form'; interface IFormInput { rememberMe: boolean; } export const Example = () => { const { control, handleSubmit, errors } = useForm(); const onSubmit = (data: IFormInput) => { console.log('submiting with ', data); }; return ( Remenber me: ( onChange(val)} isChecked={value} /> )} name="rememberMe" defaultValue={true} /> {errors.rememberMe?.message} ); };