I'm trying to use a barcode reader in my app so I can fill a TextInput within using software keyboard.
The idea is to use something like this:
<TextInput
autoFocus={true}
onFocus={Keyboard.dismiss}
multiline={false}
onSubmitEditing={() => this.submitFunction()}
/>
It partialy works as I want, I can read the code and It's shown properly but onSubmitEditing
is not called.
Does anyone knows how to hide keyboard on a TextView
but mantain the focus so onSubmitEditing
is called?
If keyboard isn't dismissed onSubmitEditing
run as spected.