Closed ospfranco closed 2 years ago
I was having an issue with webview scrolling inside the bottom sheet and managed to fix it by doing this:
<BottomSheetModal waitFor={gestureRef}>
<NativeViewGestureHandler ref={gestureRef}>
{your content}
</NativeViewGestureHandler>
</BottomSheetModal>
Give it a try.
That works, I think the documentation does not encourage it but it definitely works. Also important to note waitFor
can take an array of refs, which is exactly what I needed. Thanks!
@ospfranco how did you do this for array of refs? im having same issue
Create a fake-hook and just pass it on every render:
Bug
I would like to attach a pan gesture handler to the elements inside the bottom sheet to trigger a drag-and-drop animation on the parent component. Currently, when I put a GestureDetector inside it is not firing at all.
Environment info
Steps To Reproduce
Place a inside the bottom sheet and it will not trigger
Reproducible sample code
Here is my component code: