import { VStack, Button, FormControl, Radio, Checkbox, Text, Icon, } from 'native-base'; import React from 'react'; import { useForm, Controller } from 'react-hook-form'; import { MaterialCommunityIcons } from '@expo/vector-icons'; interface IFormInput { hobbies: string; gender: number; } export const Example = () => { const { control, handleSubmit, errors } = useForm(); const onSubmit = (data: IFormInput) => { console.log('submiting with ', data); }; return ( Hobbies ( { onChange(values); }} flexDirection="row" > } > Darts } > Movie } > Camping } > Chess )} rules={{ required: 'Atleast 1 hobbie needed' }} name="hobbies" defaultValue="" /> {errors.hobbies?.message} Gender ( onChange(val)} > Male Female )} name="gender" rules={{ required: 'Gender is required' }} /> {errors.gender?.message} ); };