Reputation: 39
I'm using the normal image tag to display server image but some images are showing properly and some are not.
<View>
<Image
style={{borderWidth:1,
width: responsiveWidth(100),
height: responsiveHeight(50),
resizeMode:'contain'}}
source = {{ uri:this.state.productimage}}/>
</View>
Upvotes: 0
Views: 3249
Reputation: 612
provide height-width in style of image tag
<Image
source = {{ uri:"http://pngimg.com/uploads/google/google_PNG19632.png" }}
style = {{ height:100, width:100 }}/>
Upvotes: 0
Reputation: 316
if you want to display your server image in grid then may be this works for you
<Image source={{uri:"http://pngimg.com/uploads/google/google_PNG19632.png"}} style={{height:null,width:null,flex:0.5,resizeMode:'contain'}} />
or change resizeMode:'cover'
Upvotes: 1