jobtoday/react-native-image-viewing

onLongPress only emits image object, not GuestureResponderEvent

carestad opened this issue · 0 comments

According to documentation it should also emit GuestureResponderEvent but I am only getting the image object in the callback for onLongPress

Docs:
image

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