Focus on an input
Closed this issue · 3 comments
dlaynes-gl commented
Hi. I'd like to use ref.focus() on the inner TextInput element. Is it possible? Thank you
CaioQuirinoMedeiros commented
Yes, just like a normal TextInput
dlaynes-gl commented
I'll try again soon with a typescript reference annotation with TextInput and not MaskInput and will post the results.
dlaynes-gl commented
This works properly in Typescript (forwardRef, useImperativeHandle). Thanks
const inputRef = createRef< TextInput >()