The onSubmit event is triggered when a user presses Enter on the (physical or soft) keyboard. The callback parameter in the event is the current Enter key type. The Enter key type can be set through the enterKeyType attribute of the TextInput component. Setting the key style of the soft keyboard requires support by the input method.
Reference