You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As we discussed elsewhere, the callback is not supported following the tightening of the API to align with RN in 0.8. You can achieve the desired result by using the onSubmitEditing prop on TextInput
The problem
Using
accessibilityRole="form"
withonSubmit={someHandler}
,someHandler
is not called when hitting the return key in a nestedTextInput
.How to reproduce
Simplified test case: https://codesandbox.io/s/6y37n189kn
Steps to reproduce:
Expected behavior
Expectation is that the
onSubmit
handler is called and the event is prevented.Actual behavior
The page is submitted and reloaded.
Environment (include versions). Did this work in previous versions?
The text was updated successfully, but these errors were encountered: