Closed hannojg closed 3 years ago
thanks @hannojg for submitting this issue.
this already been resolved with #81, I have refactored the sheet styling to use top
instead bottom
.
it will be released with v2 soon 👍
To anybody who has issues with this (active keyboard moving the modal up), you can try to programmatically switch softInputMode to adjustNothing
by writing a native module on a screen where you want to use the bottom sheet. Note that none keyboard events will be sent to the RN though
I am aware that it is possible to change on android the windowSoftInputMode, however, this is quite invasive and doesn't work with projects using react native navigation.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
This issue was closed because it has been stalled for 5 days with no activity.
Bug
Through these styles:
src/components/BottomSheet/styles.ts
it happens that when opening the Keyboard on android (e.g. having a text input in the bottom sheet's content) the content gets pushed up:
This is the default behaviour on android. Interestingly, this doesn't happen when changing the styles from
bottom
->top
.However, this breaks the BottomSheet, as all calculations are thought to be run from the bottom edge. I am aware that it is possible to change on android the windowSoftInputMode, however, this is quite invasive and doesn't work with projects using react native navigation.
Environment info
Reproducible sample code
Please tell me whether reproduction is necessary.