CaioQuirinoMedeiros/react-native-mask-input

Focus on an input

Closed this issue · 3 comments

Hi. I'd like to use ref.focus() on the inner TextInput element. Is it possible? Thank you

Yes, just like a normal TextInput

I'll try again soon with a typescript reference annotation with TextInput and not MaskInput and will post the results.

This works properly in Typescript (forwardRef, useImperativeHandle). Thanks

const inputRef = createRef< TextInput >()