Open
Description
Bug
Using a combination of BottomSheetModal
, BottomSheetScrollView
and BottomSheetTextInput
with keyboardBehavior
set to interactive
will result in extra padding/margin appearing when the keyboard is visible - this only applies to Android, on iOS it seems to work as expected.
Environment info
Library | Version |
---|---|
@gorhom/bottom-sheet | 4.0.2 |
react-native | 0.63 |
react-native-reanimated | 2.1.0 |
react-native-gesture-handler | 1.10.3 |
Steps To Reproduce
- Create a
BottomSheetModal
component that renders aBottomSheetScrollView
and a small number ofBottomSheetTextInputs
- Focus one of the lower TextInputs
- Extra padding/margin appears
Describe what you expected to happen:
- No extra padding/margin should render above the keyboard
Reproducible sample code
Below is a Snack containing a reproducible sample
https://snack.expo.dev/@conorw/v4-bottomsheetscrollview-keyboard-padding-issue
and here are two videos showcasing the issue, one using the above Snack, and the other in my own Production app