Closed afonso-tsx closed 3 years ago
You need to call a KeyboardManager.reloadLayoutIfNeeded()
on the TextInput.onLayout
event.
<TextInput
multiline={true}
onLayout={() => {
// When the input size (textarea) changes, it updates the keyboard position.
KeyboardManager.reloadLayoutIfNeeded();
}}
/>
For more details, see the Sample Project.
Thanks for the response, I tried this but no success, since it was also in other closed issues.
The sample project:
Hey! I'm trying to use the autoscroll with a multiline input, it seems to work fine if it's a normal textinput, but with multiline prop there is no scroll whatsoever, thanks!