I want a React Native Image to have a width of 50% of the available screen-width, no modification to width:height ratio of the image.
Any hints how to solve this?
Use resize mode cover
and set the width to ScreenWidth / 2 you can retrive the screen width using Dimensions component
//Get screen width using Dimensions component
var {width} = Dimensions.get('window');
//....
//In image style
image:{
width: width * 0.5
}
//In render function
Edit adding overflow
//add overflow : visible