Closed bezenson closed 2 years ago
Try this:
import { TextField } from 'react-native-material-textfield'
const textInputRef = useRef<TextField>(null)
<TextField
ref={textInputRef}
{...} // other props
/>
Then use textInputRef.current.setValue('Hello world')
or textInputRef.current.focus()
Code example:
Gotten error:
I think just TypeScript file should be fix because everything seems to be working