[英]How to resize image when upload for all mobile devices?
I just build a sample react native project I a have a problem when original image I uploaded in server not fit all screen on another mobile screens (IOS, Android) 我只是构建了一个示例本机项目,当我在服务器中上传的原始图像无法容纳另一个移动屏幕(IOS,Android)上的所有屏幕时,我遇到了问题
I need to resize the image according to each device resolution? 我需要根据每个设备的分辨率调整图像大小吗?
Please help me to solve this problem 请帮我解决这个问题
Androi Guides - Support different screen sizes Androi指南-支持不同的屏幕尺寸
尝试像这样设置resizeMode拉伸
<Image soure={image} style={{width:200, height:200, resizeMode:'stretch'}} />
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.