This sucks, everything sucks
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user