From fcf7537f5625f4eaec5e5004c03d974ebcc162ce Mon Sep 17 00:00:00 2001 From: Adolfo Reyna Date: Fri, 4 Oct 2024 02:29:52 -0400 Subject: [PATCH] Share image instead of url --- components/Media.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/components/Media.js b/components/Media.js index b24de56..f86d59d 100644 --- a/components/Media.js +++ b/components/Media.js @@ -132,11 +132,8 @@ let Media = (props) => { //alert("hello"); navigation.navigate('Slideshow', { images: imagesTag, startIndex: index }); }} - onLongPress={() => { - Share.share({ - //message: image[1], - url: item[1], - }); + onLongPress={async () => { + await shareImage(item[1]); }}>