likashefqet / react-native-image-zoom

A performant and customizable image zoom component built with Reanimated v2+ and TypeScript. 🌃 🚀
https://www.npmjs.com/package/@likashefqet/react-native-image-zoom
MIT License
353 stars 46 forks source link

Support for expo-image or other components #35

Closed slytter closed 5 months ago

slytter commented 1 year ago

Is your feature request related to a problem? Please describe. expo-image is beginning to take over <Image/> component from react native.

Describe the solution you'd like Instead of making a new exported component maybe we could implement a createZoomComponent, which would make any kind of component zoomable, with your current implementation.

Then you could go:

import { createZoomComponent } from 'react-native-image-zoom'
import { Image } from 'expo-image'

const ZoomableImage = createZoomComponent(Image)

const MyComponent = () => {
    return <ZoomableImage 
         // ...expo-image props here
    />
}

Describe alternatives you've considered Another way would be to implement a <ZoomableView>{children}</ZoomableView> kind of component that could just make any child component zoomable.

github-actions[bot] commented 10 months ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days.

github-actions[bot] commented 8 months ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days.

irenerhee commented 7 months ago

I'd be interested in this too!

github-actions[bot] commented 5 months ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days.

github-actions[bot] commented 5 months ago

This issue was closed because it has been stalled for 15 days with no activity.