Rewrite Android lightbox (#1624)

This commit is contained in:
dan 2023-10-06 03:54:36 +01:00 committed by GitHub
parent 8366fe2c4a
commit 64153067e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 540 additions and 598 deletions

View file

@ -1,13 +1,16 @@
// default implementation fallback for web
import React from 'react'
import React, {MutableRefObject} from 'react'
import {View} from 'react-native'
import {GestureType} from 'react-native-gesture-handler'
import {ImageSource} from '../../@types'
type Props = {
imageSrc: ImageSource
onRequestClose: () => void
onZoom: (scaled: boolean) => void
pinchGestureRef: MutableRefObject<GestureType | undefined>
isScrollViewBeingDragged: boolean
}
const ImageItem = (_props: Props) => {