[Bug]: When BottomSheet content height change dynamically, it close the BottomSheet
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
hi @MaximeDemurger, tested the issue on both Android and iOS and i did not manager to repo it
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
we have this issue as well, for more information we just updated expo and react native
up
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.
up
I think this is probably related to #2068
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.
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",
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.