Answers for "upload image react native"

0

resize image react native

image : {
		width      : null,
		resizeMode : 'contain',
		height     : 220
	}
Posted by: Guest on December-09-2020
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
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

Code answers related to "Javascript"

Browse Popular Code Answers by Language