Share image instead of url

This commit is contained in:
Adolfo Reyna
2024-10-04 02:29:52 -04:00
parent 461b8c98ed
commit fcf7537f56

View File

@@ -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]);
}}>
<Image source={{ uri: item[1] }} style={styles.flatlistImages} cachePolicy="memory-disk" />
</TouchableWithoutFeedback>