ascoders / react-native-image-zoom

react native image pan and zoom
MIT License
639 stars 282 forks source link

Flatlist vertical scrolling is not working if ImageZoom added as parent #154

Open aadityapaliwal94 opened 4 years ago

aadityapaliwal94 commented 4 years ago

I have added the ImageZoom component in my Flatlist's item. I just want to have image zoom, so I set false to panToMove. Now I am scrolling my Flatlist but it's not getting scrolled due to the image responding.

How can I solve it?

return ( <ImageZoom cropWidth={width} cropHeight={height} imageWidth={width} imageHeight={height} panToMove={false}> <Image style={styles.image(item.imageData.width, item.imageData.height, navigationStyle.panelsMargin, item)} source={{ uri: item.imageData.image }} /> </ImageZoom> )

darron1217 commented 3 years ago

Take a look at my answer https://github.com/ascoders/react-native-image-zoom/issues/42#issuecomment-734209924