antonKalinin / react-native-image-view

Modal component to view images with zoom

Home Page:https://expo.io/@antonkalinin/react-native-image-view

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Modal freezes when swiping down or up at an angle.

sw00d opened this issue · comments

My environment:
-iPhone 8
-react-native-cli: 2.0.1
-react-native: 0.52.0
-react-native-image-view: 2.0.10

When I slide down or up at an angle it sometimes freezes the modal. I think it get's confused as if you are trying to close out of the modal or if you are trying to swipe to the next image. It freezes until you hit the 'X' in the upper right-hand corner. I replicated the issue once on the android expo example online, but it took a while to replicate.

My Usage:
<ImageView
images={this.state.images}
imageIndex={this.state.idx}
isVisible={this.state.visible}
animationType='slide'
onClose={()=>this.imageView()}
renderFooter={(currentImage) => (My footer)}
/>

Faced with the same, try to fix in several days

Having the same problem as well. Is there anyway to disabled the slide up/down to close functionality?

Partially fixed in 2.1.0 Its probably need to rethink all logic to make it work correct. Going to do it in a week.

Hey guys and sorry for long time not responding.

This repo has been abandoned a little bit but I have a good news: in my current company we needed the same functionality that this module provides so we completely rewrote it and made a lot of improvements. So there should be no more jumpy scrolling and finally zoom on Android works as expected! We also have optimised module it terms of performance for large lists of photos.

Please check it: https://github.com/jobtoday/react-native-image-viewing

The API is very close to this one so there shouldn't be a lot of problems to replace.
There are still some features missing and we are planning to add it very soon.

Thanks a lot for using this module.