I am using textInput to get a users age so on iOS I have the numeric keyboard and the return key type set to "done" so I am using
returnKeyType={'done'}
keyboardType="numeric"
As of right now i am just trying to figure out how to do something when the user hits the "Done" button.
this is my current text input field
<TextInput
placeholder="Age (Yr)"
style={AuthScreenStyles.Input}
autoCapitalize="none"
autoCorrect={false}
returnKeyType={'done'}
keyboardType="numeric"
ref={register({ name: 'age_year' }, { required: true })}
onChangeText={(text) => setValue('age_year', text, true)}
onSubmitEditing={() => {
console.log('The button has been pressed');
}}
/>
I am yet to get this console.log() to fire. Anyone know how to capture when the done button is pressed? onSubmitEditing() is not working.

