Issue with BottomSheetModal closing when keyboard opens #2437
Replies: 1 comment
-
please open an issue and provide a reproducible expo snack for the issue |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a form inside of a BottomSheetModal. When I click on a BottomSheetTextInput and the native keyboard opens, if the BottomSheetModal reaches the top of the screen, the modal will dismiss automatically. This does not happen if the keyboard does not push the modal to reach the top of the screen. What is the best way for me to handle this?
I believe the intended behavior would be to have the BottomSheetModal extend past the top of the screen, but
I am open to other suggestions.
Here is my modal component:
Here is my layout:
Note that I am not using snap points. I would prefer not to use them but if I have to I will. The only thing that is relevant in the modalData component is that I use the BottomSheetTextInput component.
Attached is a video showin the behavior that I am trying to fix.
Simulator.Screen.Recording.-.iPhone.16.Pro.-.2025-08-28.at.13.00.09.mp4
Beta Was this translation helpful? Give feedback.
All reactions