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

[Bug]: When BottomSheet content height change dynamically, it close the BottomSheet

Open MaximeDemurger opened this issue 10 months ago • 8 comments

Version

v5

Reanimated Version

v3

Gesture Handler Version

v2

Platforms

iOS, Android

What happened?

When i try to open the BottomSheet using expand and the content height change it close automatically the BottomSheet

Reproduction steps

  • Press Open Size : 200
  • Close the BottomSheet
  • Press Open BottomSheet with Dynamic Size
  • Wait 3000ms
  • It close automatically
  • Press Open BottomSheet with Dynamic Size
  • The content height is different due to the new height of the content

Reproduction sample

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

Relevant log output


MaximeDemurger avatar Feb 21 '25 13:02 MaximeDemurger

hi @MaximeDemurger, tested the issue on both Android and iOS and i did not manager to repo it

gorhom avatar Mar 09 '25 20:03 gorhom

Hi @gorhom,

It seems that this only affects certain users.

We've had some feedback from users of a client application. We can't reproduce the problem, but we were able to detect it thanks to the collaboration of one of them. For our part, we simply froze the height to solve the problem.

This user has a Samsung SM-A546B with Android 14 Another user on Crosscall Core-X5 with Android 12 And another user on Samsung SM-G970F with Android 12

JamesHemery avatar Mar 17 '25 09:03 JamesHemery

we have this issue as well, for more information we just updated expo and react native

L-Weisz avatar Apr 10 '25 09:04 L-Weisz

up

Madeean avatar Apr 14 '25 08:04 Madeean

Same here, opening, closing and opening shows up with different heights.

Running on Simulator (iOS)

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 Jun 04 '25 09:06 github-actions[bot]

up

fiksikkk avatar Jun 04 '25 09:06 fiksikkk

I think this is probably related to #2068

billyjacoby avatar Jun 17 '25 11: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]

Does anyone found out solution for this, when the keyboard opens up even-tough bottomInset set to 0, there is some gap between keyboard and bottomsheet modal. Also, i have searchInput filter inside sheet, while typing the bottomsheet modal closes automatically when enableDynamicSizing is true. I used flatlist from 'react-native-gesture-handler'.

This is happening after updating to latest version from 5.0.6 somebody help me!

"@gorhom/bottom-sheet": "^5.1.6", "react-native": "^0.75.5",

krishnan-456 avatar Jul 22 '25 06:07 krishnan-456

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 Aug 22 '25 09:08 github-actions[bot]

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

github-actions[bot] avatar Aug 28 '25 09:08 github-actions[bot]