Closed simon-abbott closed 8 months ago
I'm having the same issue here.
Same problem.
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.
Not fixed, don't close.
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.
Bump.
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.
Bump!
@simon-abbott hey, I had a similar issue with a date picker inside modal. I solved the issue by using BottomSheetView
and inside it using ScrollView
from react-native-gesture-handler
import { ScrollView } from 'react-native-gesture-handler';
`
`
Using a different ScrollView
does work, but the problem is that I need to be able to set enableContentPanningGesture
dynamically, and when it's enabled I need to use a BottomSheetScrollView
so the drag-to-close works as expected. I can swap between the two dynamically based on whether or not the sheet should be enabled, but swapping out the components loses the scroll amount (snaps back to top), and I couldn't find a clean (and performant) way to preserve the scroll offset through that transition.
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.
Not fixed, don't close!
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.
bump
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.
bumpity bump
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.
bump
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.
Commenting to keep open
same problem here too
please fix this
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.
Pump
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.
Still a problem, do not close.
@simon-abbott I ran into as similar issue and ended up doing:
enablePanDownToClose={false}
enableOverDrag={false}>
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.
Not fixed yet!
any solution
@Zakyyy Does the alternative I posted above work?
https://github.com/gorhom/react-native-bottom-sheet/issues/765#issuecomment-1399311529
@keithluchtel the thing is I don't want to remove this behavior from the modal, I want to have this enabled
Do you have any other solution?
Thanks for helping
@Zakyyy, I hadn't looked any further into it since after I used this alternative in my project. Sorry I can't be more help.
@Zakyyy, I hadn't looked any further into it since after I used this alternative in my project. Sorry I can't be more help.
No worries thanks
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.
Not fixed, don't close please.
I have the same issue. Please help.
Running into the same issue here
Same problem .
For now, I made margin of 2 and removed enableContentPanningGesture={false} such that user is allowed to navigate back to previous page and also have scroll function but still it is just a work around, I did such for a solution but couldn't find it.
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.
Not stale, please don't close.
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.
Still not fixed.
Hopping in here -- this is still an issue
Help
I am also experiencing this issue. Any solution to this?
For context, I am trying to achieve the instagram comment modal. When the modal opens up, the comments are scrollable, with the modal snapped at approximately half the screen but can be expanded when panning on the modal header/handle. Also when it's at the max height and the scrollview is at the top, any downwards drag on the scrollview will snap back the modal back to initial/original modal height.
I don't know if there is any other props combination or if anyone knows how this can achieve kindly comment here.
Thanks 🙏🏽
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.
Still broken, do not close.
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.
Bug
Setting
enableContentPanningGesture
tofalse
breaks the scroll interaction withBottomSheetScrollView
. Namely, while the user's finger is still down they can move it all they want and the content does not scroll at all, but when they release their finger the momentum is applied.Environment info
Steps To Reproduce
BottomSheet
withenableContentPanningGesture={false}
BottomSheetScrollView
in it with enough contents to make it scrollDescribe what you expected to happen:
Setting
enableContentPanningGesture
tofalse
should disable the ability to collapse the sheet by panning, but it should not affect scrolling the contents.Reproducible sample code
https://snack.expo.dev/@simon.abbott/bottom-sheet-scroll