Open elad30300 opened 1 year ago
@dohooo, Any update on this? The scrolling isn't working with the PhotoView
library as well.
react-native-reanimated-zoom not working as well
Any updates regarding this issue please?
@eduardfarkas I've tried to instantiate differently but no luck:
import {
Zoom,
createZoomListWithReanimatedComponent,
} from 'react-native-reanimated-zoom';
const ZoomCarousel = createZoomListWithReanimatedComponent(Carousel);
Same issue Carousel
is not scrolling.
I found other solution and it work well try this package react-native-pinchable
Ex.
import Pinchable from 'react-native-pinchable'
import Carousel from 'react-native-reanimated-carousel'
import { Image, useWindowDimensions } from 'react-native'
export const ImagesView = () => {
const { width } = useWindowDimensions()
return (
<Carousel
loop
width={width}
height={width / 2}
data={[...new Array(6).keys()]}
scrollAnimationDuration={1000}
onSnapToItem={(index) => console.log('current index:', index)}
renderItem={({ index }) => (
<Pinchable>
<Image resizeMode="contain" style={{ width: 200, height: 200 }} source={{ uri: 'https://www.shopat24.com/blog/wp-content/uploads/2020/04/7.jpg' }} />
</Pinchable>
)}
/>
)
}
any suggestion on other package besides react-native-pinchable for zooming and panning of images?
Hi, I'm not sure if this is a bug but I would like to get some help here :)
I want to have a carousel that each item is a zoomable image, the carousel should be all over the screen so I use Portal for that. To support zoom I use
ImageZoom
component fromreact-native-image-pan-zoom
in the following way:What happens is that the
carousel
barely let me scroll left or right since it seems like theImageZoom
responds first to the scrolls. I tried to setonStartShouldSetPanResponder={() => false}
on theImageView
which solves theCarousel
scrolling but doesn't let me use theImageZoom
to zoom since it appears like theCarousel
now responds first to gestures.I would like to know if there is any way to make them both work together.
Thanks ahead!