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
The use case where this causes an issue is to focus the next text input with the keyboard "next" button. To detect that the "next" button was pressed I use onSubmitEditing but it is not called anymore when blurOnSubmit is false. Right now I have to set blurOnSubmit to true but causes the keyboard to close a bit then reopen which is bad instead of just staying opened.
Looks like the logic changed in the recent refactors:
The use case where this causes an issue is to focus the next text input with the keyboard "next" button. To detect that the "next" button was pressed I use onSubmitEditing but it is not called anymore when blurOnSubmit is false. Right now I have to set blurOnSubmit to true but causes the keyboard to close a bit then reopen which is bad instead of just staying opened.
Looks like the logic changed in the recent refactors:
Old delegate implementation
https://github.com/facebook/react-native/blob/9afb71fde8199156ed683dca6aa59826f9fb9279/Libraries/Text/RCTTextField.m#L267
and https://github.com/facebook/react-native/blob/9afb71fde8199156ed683dca6aa59826f9fb9279/Libraries/Text/RCTTextField.m#L267
New implementation
https://github.com/facebook/react-native/blob/master/Libraries/Text/RCTTextInput.m#L118
Repro
It works on snack because it doesn't have the text input changes yet, the same code doesn't work currently on master.
https://snack.expo.io/HJMHiNaI-
cc @shergin