-
-
Notifications
You must be signed in to change notification settings - Fork 927
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Version
v5
Reanimated Version
v3
Gesture Handler Version
v2
Platforms
Android
What happened?
When rendering a BottomSheetScrollView, it's not possible to set a fixed height to it, the height is ignored.
I have a use case where I want to render a ScrollView inside the bottom sheet modal, but I don't want it to expand past its parent, so I set a fixed height to the ScrollView, but it doesn't work and just expands to full screen height.
If I use ScrollView from react-native-gesture-handler, the height works correctly, but then bottom sheet gestures don't work properly, as expected.
Reproduction steps
- Render BottomSheetModal with BottomSheetScrollView inside.
- Inside the BottomSheetScrollView render 100 Views each with height of 30px and with Text of index inside.
- Set style of
height: 300pxto BottomSheetScrollView - Expect to see the BottomSheetModal with height of 300px and scrollable ScrollView inside, but actually the modal is the height of the screen.
Reproduction sample
https://snack.expo.dev/@audriusenb/bottom-sheet-scroll-view-height-issue
Screen.Recording.2026-01-07.at.13.05.14.mov
Relevant log output
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working