Move swipe gesture handling upwards

This commit is contained in:
Dan Abramov
2024-10-30 23:43:45 +00:00
parent 9c28b3a491
commit fe7d97b0bf
4 changed files with 59 additions and 78 deletions
@@ -2,7 +2,7 @@
import React from 'react'
import {View} from 'react-native'
import {SharedValue} from 'react-native-reanimated'
import {PanGesture} from 'react-native-gesture-handler'
import {ImageSource} from '../../@types'
@@ -13,7 +13,7 @@ type Props = {
onZoom: (scaled: boolean) => void
isScrollViewBeingDragged: boolean
showControls: boolean
dismissSwipeTranslateY: SharedValue<number>
dismissSwipePan: PanGesture | null
}
const ImageItem = (_props: Props) => {