1//use Touchable Opacity
2<TouchableOpacity onPress={()=> alert('image clicked)}>
3 <Image source={require('./sampleimage.png')} style = {styles.ImageClass} />
4 </TouchableOpacity>
1import {
2 Share
3} from 'react-native';
4 let shareImage = {
5 title: caption,//string
6 message: message,//string
7 url:imageUrl,// eg.'http://img.gemejo.com/product/8c/099/cf53b3a6008136ef0882197d5f5.jpg',
8
9 };
10 Share.open(shareImage).catch(err => console.log(err));
11