import { VStack, Button, FormControl, Slider } from 'native-base'; import React from 'react'; import { useForm, Controller } from 'react-hook-form'; interface IFormInput { like: number; } export const Example = () => { const { control, handleSubmit, errors } = useForm(); const onSubmit = (data: IFormInput) => { console.log('submiting with ', data); }; return ( Amount you like NativeBase ( onChange(val)} defaultValue={value}> )} name="like" rules={{ required: 'Field is required', minLength: 3 }} defaultValue={100} /> {errors.like?.message} ); };