Open cooperjbrandon opened 3 years ago
Ah nice! I was running into the same issue
Is there an official release available containing this fix?
Looking at v3.0.1 it was released on 19 May 2020 (https://github.com/ascoders/react-native-image-viewer/releases/tag/v3.0.1). But this commit was from 11 Dec 2020.
Can this please be merged? I'm experiencing the same issue
When rendering left and right arrows, on tapping the arrow, either
this.goBack()
orthis.goNext()
is called. See current implementation:However, in
this.goBack
andthis.goNext
,this.loadImage
is never called. So no image is shown. This isn't a problem when doing the actual swipe gesture, because when using the swipe gesture,this.handleHorizontalOuterRangeOffset
is invoked, which callsthis.loadImage
.So now, pressing the arrows loads the image.