react-native-image-viewing icon indicating copy to clipboard operation
react-native-image-viewing copied to clipboard

onLongPress only emits image object, not GuestureResponderEvent

Open carestad opened this issue 2 years ago • 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

carestad avatar Jul 19 '22 13:07 carestad