react-native-paper
react-native-paper copied to clipboard
Scroll not working on Android 15 and above
Current behaviour
When the input is focused, the keyboard opens but the view remains fixed and does not scroll.
Expected behaviour
When focusing on the input, the view should scroll automatically.
Repo Snack
https://snack.expo.dev/@vid_goel/textinput-with-keyboardawarescrollview
Preview
https://github.com/user-attachments/assets/cecdf2fd-7e7a-4dca-a139-16e45ece97d6
###Additional details
This issue occurs on Android 15 and above.
Your Environment
| software | version |
|---|---|
| ios | x |
| android | x |
| react-native | 0.79.6 |
| react-native-paper | 5.14.5 |
| node | 22.17.0 |
| npm or yarn | 10.9.2 |
| expo sdk | x.x.x |
| react-native-keyboard-aware-scroll-view | 0.9.5 |
try this
<KeyboardAwareScrollView
enableOnAndroid={true}
keyboardShouldPersistTaps="always"
contentContainerStyle={{ paddingBottom: 120 }}
style={{ flex: 1 }}
overScrollMode="never"
showsVerticalScrollIndicator={false}
>
@mensonones enableOnAndroid takes a lot of space at the bottom on Android 14 and below, even without adding contentContainerStyle={{ paddingBottom: 120 }}.