Skip to content

[v4][v5] [Android] | TextInput at the bottom of a scroll view falls behind keyboard #1934

Open
@atlj

Description

@atlj

Bug

I was able to reproduce this both with 4.6.4 and 5-alpha.11. When I have a scroll view and there is a text input at the bottom, the text input falls behind the keyboard on Android. I'm using the android_keyboardInputMode="adjustResize" and my snap point here is 100%.

Screen.Recording.2024-09-12.at.14.57.31.mov

Environment info

Library Version
@gorhom/bottom-sheet 4.6.4
react-native 0.74.1
react-native-reanimated 3.10.1
react-native-gesture-handler 2.16.1

Steps To Reproduce

  1. Create a bottom sheet with a long scrollable content
  2. Place a text input at the bottom
  3. Set android_keyboardInputMode="adjustResize" (also change this option in your app.json/AndroidManifest.xml to adjustResize
  4. Set your snap point as 100%
  5. Scroll to the bottom
  6. Click on the text input on Android

Describe what you expected to happen:

  1. The text input should still be visible when the keyboard is enabled

What's happening instead:

  1. The text input falls behind the keyboard ~70% of the time

Reproducible sample code

https://snack.expo.dev/@atlj0/bottom-sheet-v4-android-keyboard-hides-textinput

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingv5

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions