Answers for "react native share image"

4

add image in react native

<Image
  source={{ uri: 'app_icon' }}
  style={{ width: 40, height: 40 }}
/>
Posted by: Guest on June-13-2020
0

react native share image

import {
     Share
} from 'react-native';
 let shareImage = {
                title: caption,//string
                message: message,//string
                url:imageUrl,// eg.'http://img.gemejo.com/product/8c/099/cf53b3a6008136ef0882197d5f5.jpg',

            };
            Share.open(shareImage).catch(err => console.log(err));
Posted by: Guest on April-28-2021
0

onPress image react native

//use Touchable Opacity
<TouchableOpacity onPress={()=> alert('image clicked)}>
          <Image source={require('./sampleimage.png')} style = {styles.ImageClass} />
        </TouchableOpacity>
Posted by: Guest on October-20-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language