This sucks, everything sucks

This commit is contained in:
Dan Abramov
2024-11-02 22:39:26 +00:00
parent 68578f3860
commit b2203ac964
4 changed files with 18 additions and 12 deletions
@@ -49,7 +49,7 @@ type Props = {
onRequestClose: () => void
onTap: () => void
onZoom: (isZoomed: boolean) => void
isScrollViewBeingDragged: boolean
isPagingAndroid: boolean
showControls: boolean
dismissSwipePan: PanGesture
animatedStyle: StyleProp<ImageStyle>
@@ -58,7 +58,7 @@ const ImageItem = ({
imageSrc,
onTap,
onZoom,
isScrollViewBeingDragged,
isPagingAndroid,
dismissSwipePan,
animatedStyle,
}: Props) => {
@@ -289,7 +289,7 @@ const ImageItem = ({
committedTransform.value = withClampedSpring(finalTransform)
})
const composedGesture = isScrollViewBeingDragged
const composedGesture = isPagingAndroid
? // If the parent is not at rest, provide a no-op gesture.
Gesture.Manual()
: Gesture.Exclusive(