react-navigation-bottom-sheet
react-navigation-bottom-sheet copied to clipboard
BottomSheetScrollView doesn't work!
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 !
To work properly you should use ScrollView from react-native-gesture-handler:
import { ScrollView } from 'react-native-gesture-handler';
@eduduardo in this case we lose the possibility to close the BS with the scroll gesture, which is a feature of BottomSheetScrollView.
experiencing the same isssue
Has anyone found a solution?
@kamack38 do you have same issue ? try to update to recent version 0.3.1
@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?
@kamack38 you should use BottomSheetScrollView
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?
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)
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.
@kamack38 maybe useBottomSheetDynamicSnappoints()
I think I was looking for animatedIndex, but thanks for the help nonetheless.