react-native-image-viewing
react-native-image-viewing copied to clipboard
onLongPress only emits image object, not GuestureResponderEvent
According to documentation it should also emit GuestureResponderEvent
but I am only getting the image object in the callback for onLongPress
Docs:
Example code:
<ImageView
imageIndex={imageModalIndex}
images={images}
visible={showImageModal}
onLongPress={(event, image) => {
console.log('On long press', event, image);
}}
swipeToCloseEnabled
onRequestClose={() => setShowImageModal(false)}
/>
The console.log statement there only returns
On long press {"uri": "https://foo.com/foobar.jpg"} undefined