I\'m trying to create a passcode protected screen. The screen will uses 4 numeric input as the passcode.
The way I\'m doing this is create a TextInput Component and
I think the issue is that onSubmitEditing
is when you hit the "return" or "enter" key on the regular keyboard... there is not one of those buttons on the keypad.
Assuming you want each input to only have one character, you could look at the onChangeText
and then check if text has length 1 and call focus if the length is indeed 1.