Basically onSumbitEditing will display a onSumbitEditing event when you press the go button on the Android keyboard, as shown below:
<TextInput style={[styles.zipCode, styles.mainText]} returnKeyType='My Custom button' onSubmitEditing={(event) => this.updateText( event.nativeEvent.text )}/>
in the code snippet above: I have the name of the action - this is βMy custom buttonβ, which will appera on the soft keyboard in Android and when you click on the updateText event is triggered, here's what the value of onSubmitEditing is
Note: if the physical keyboard is enabled in the android emulator, therefore, onSubmitEditing will not tiger any event, since you will also not need to press a virtual key called the name "My custom button"
source share