Hey there,
So, this problem took me a few hours to nail down.
In my (demo) app, I’ve got simple a multiline TextInput.
Now usualy I use the Android Keyboard SwiftKey for my daily use. Now, if I enter text and then hit the enter key on the keyboard, the onSubmitEditing event is fired and the keyboard collapses. According to the doco, this event shouldn’t be fired when multiline={true}. I also tested this with the Lastpass keyboard (its a password manager that has its own keyboard) and the same thing happens as with SwiftKey.
If I use the standard GBoard keyboard things work as expedted (a new line is added and no event is fired).
I found an entry on the SwiftKey forums, but no solution:
https://vip.swiftkey.com/index.php?/topic/17110-line-breaks-not-working-as-expected.
Here is a expo.sketch: https://sketch.expo.io/By-OQqGhg
And here is my demo project with the SDK15:
https://github.com/codewithpassion/expo-keyboard-issue
If I use the exact same code and use SDK14 it works as expected.
So, I understand that this is very much an edge case and probably related to something in react-native.
I’m happy to raise it as a github issue somewhere, I just have no clue where.
Hope we can find a solution for this!
- Dom