Share image instead of url
This commit is contained in:
+2
-5
@@ -132,11 +132,8 @@ let Media = (props) => {
|
|||||||
//alert("hello");
|
//alert("hello");
|
||||||
navigation.navigate('Slideshow', { images: imagesTag, startIndex: index });
|
navigation.navigate('Slideshow', { images: imagesTag, startIndex: index });
|
||||||
}}
|
}}
|
||||||
onLongPress={() => {
|
onLongPress={async () => {
|
||||||
Share.share({
|
await shareImage(item[1]);
|
||||||
//message: image[1],
|
|
||||||
url: item[1],
|
|
||||||
});
|
|
||||||
}}>
|
}}>
|
||||||
<Image source={{ uri: item[1] }} style={styles.flatlistImages} cachePolicy="memory-disk" />
|
<Image source={{ uri: item[1] }} style={styles.flatlistImages} cachePolicy="memory-disk" />
|
||||||
</TouchableWithoutFeedback>
|
</TouchableWithoutFeedback>
|
||||||
|
|||||||
Reference in New Issue
Block a user