Description
AndroidManifest.xml
<application
...
<activity
...
android:windowSoftInputMode="adjustPan">
...
Then:
<KeyboardAwareScrollView
style={{ flex: 1 }}
keyboardShouldPersistTaps="handled"
enableOnAndroid
>
Works perfectly on iOS. However, on Android, let's say I start off with a screen in which the keyboard is already showing and I move on to another screen without first dismissing the keyboard. When the next screen is moved into place, the keyboard stays open and the appropriate TextInput
receives focus (both due to autoFocus
) but I'm unable to scroll. The TextInput
is about 96% visible (by chance due to its location). If I try to scroll, the keyboard gets dismissed (because I couldn't scroll, it interprets the touch as a tap, I guess). Now, if I tap on a TextInput
to bring up the keyboard again, scroll works fine.
On iOS, when the new screen moves into place, the view is automatically scrolled into place with animation and the scroll works as expected.
Is anyone else experiencing this? Is there a solution?