th3rdwave / react-navigation-bottom-sheet

MIT License
423 stars 18 forks source link

BottomSheetScrollView doesn't work! #19

Closed firasrg closed 3 weeks ago

firasrg commented 1 year ago

Hello!

I have a sheet view with a scrollable list. The scroll doesn't work! We've tried many ways to solve it but nothing works! I've reproduced the issue within a snack

Please Help !

eduduardo commented 11 months ago

To work properly you should use ScrollView from react-native-gesture-handler:

import { ScrollView } from 'react-native-gesture-handler';
joseortiz9 commented 11 months ago

@eduduardo in this case we lose the possibility to close the BS with the scroll gesture, which is a feature of BottomSheetScrollView.

muhammadarsal commented 10 months ago

experiencing the same isssue

kamack38 commented 3 weeks ago

Has anyone found a solution?

firasrg commented 3 weeks ago

@kamack38 do you have same issue ? try to update to recent version 0.3.1

kamack38 commented 3 weeks ago

@kamack38 do you have same issue ? try to update to recent version 0.3.1

I'm using the 0.3.2 version. With which ScrollView should it work?

firasrg commented 3 weeks ago

@kamack38 you should use BottomSheetScrollView

kamack38 commented 3 weeks ago

Big thanks, now that I try it, it actually works.

If you wouldn't mind I have quick question for you. Do you know how can I "subscribe" to the current snapPoint change, or how can I get the current snap point?

firasrg commented 3 weeks ago

Oh great, that means this issue is solved ✅. If you want to follow the snappoints, I think you need to use the snapToPosition() api (check documentation)

kamack38 commented 3 weeks ago

This allows me to change the snapPoint, but I want to change the content depending on the current snapPoint. So for example I want to display what the current snapPoint is in a form of a text.

firasrg commented 3 weeks ago

@kamack38 maybe useBottomSheetDynamicSnappoints()

kamack38 commented 3 weeks ago

I think I was looking for animatedIndex, but thanks for the help nonetheless.