react-native-bottom-sheet icon indicating copy to clipboard operation
react-native-bottom-sheet copied to clipboard

[Bug]: Content height changes with keyboard present close modal unexpectedly

Open billyjacoby opened this issue 6 months ago • 2 comments

Version

v5

Reanimated Version

v3

Gesture Handler Version

v2

Platforms

iOS

What happened?

When typing in a BottomSheetTextInput inside of a BottomSheetModal if the content height changes drastically enough the BottomSheet will unexpectedly close.

Reproduction steps

Clone the repo here

Install on iOS simulator Press show details Select the text input and MAKE SURE KEYBOARD IS SHOW Press the 'Show View One' button

The repro in the Expo Snack does not showcase the issue, you must run where the keyboard can be shown to see the issue.

Reproduction sample

https://snack.expo.dev/@billyjacoby/bottom-sheet---issue-reproduction-template

Relevant log output


billyjacoby avatar Jun 17 '25 20:06 billyjacoby

I've been posting in #2068 and #2176 , but i'm not sure if this is related or not. Hopefully so since it's fully reproducible here.

billyjacoby avatar Jun 17 '25 20:06 billyjacoby

In case anyone else runs into this issue for now the workaround for me has been to manually call Keyboard.dismiss() before performing the action that changes the sheet height.

billyjacoby avatar Jun 19 '25 17:06 billyjacoby

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.

github-actions[bot] avatar Jul 20 '25 09:07 github-actions[bot]

This issue was closed because it has been stalled for 5 days with no activity.

github-actions[bot] avatar Jul 25 '25 09:07 github-actions[bot]