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

[Bug]: BottomSheetModal - Can't view bottom of BottomSheetScrollView when using snappoints

Open mattmiller515 opened this issue 1 month ago • 6 comments

Version

v5

Reanimated Version

v3

Gesture Handler Version

v2

Platforms

Web

What happened?

When you are using a BottomSheetScrollView with BottomSheetModal, the BottomSheetModal snappoint must be at 100% to view all of the content. If it is at anything less, say 50%, the content is cut off and you can't scroll to it (without opening the modal to 100%)

Reproduction steps

  • Create a BottomSheetModal with a BottomSheetScrollView
  • Populate with data (e.g. 20 records with padding)
  • set snappoints to 50%
  • open BottomSheetModal
  • BUG - when you try and scroll down to the bottom records, you can not reach them unless you expand the modal to 100%

https://github.com/user-attachments/assets/51c61ef1-ac9b-4aaa-aace-78cc202b8c61

Reproduction sample

https://snack.expo.dev/@mattmiller515/bottomsheetmodal---cant-view-bottom-when-using-snappoints

Relevant log output


mattmiller515 avatar Nov 06 '25 18:11 mattmiller515

Have you found any workarounds for this @mattmiller515 ?

MDSADABWASIM avatar Nov 12 '25 06:11 MDSADABWASIM

@MDSADABWASIM no luck yet unfortunately

mattmiller515 avatar Nov 13 '25 17:11 mattmiller515

Same :/

https://github.com/user-attachments/assets/335889d7-2597-458a-bf14-911c68a48803

kristian-nst avatar Nov 19 '25 15:11 kristian-nst

found a fix, set height to 100% on the outer BottomSheetView :)

michael-pingo-ai avatar Nov 29 '25 20:11 michael-pingo-ai

Same. @michael-pingo-ai, could you provide a working example? We only have a BottomSheetScrollView inside a BottomSheetModal. It happens if the snapPoints have values ​​greater than 50%.

evgeniygulyaev94 avatar Dec 01 '25 09:12 evgeniygulyaev94

Same. @michael-pingo-ai, could you provide a working example? We only have a BottomSheetScrollView inside a BottomSheetModal. It happens if the snapPoints have values ​​greater than 50%.

I had the same issue and was able to work around it with @michael-pingo-ai's suggestion. Wrap the bottomsheetscrollview in a bottomsheetview with a height: 100% style Note that it required the BottomSheetScrollView contentContainerStyle was not flex:

<BottomSheet  snapPoints={snapPoints} {...restOfProps}>
  <BottomSheetView style={{height: '100%'}}>
    <BottomSheetScrollView>
      {/* Content is now fully scrollable */}
    </BottomSheetScrollView>
  </BottomSheetView>
</BottomSheet>

josh-feldman avatar Dec 11 '25 05:12 josh-feldman