The bug looks like this:
iOS appears normal, and Android appears to be squeezed up.
The final workaround:
For example, your picture is a 513, then you set the style width for the width of the screen, height for the width of the screen/(750/513)
This preserves the width-to-height ratio of the original.
var styles = Stylesheet.create ({ Span style= "COLOR: #008000" >// Here is not the number of pictures, you need to use inline style // Contentcontainer: { //< /span> Width:Util.size.width, // Height:Util.size.height, // }, backgroundimage: {width:Util.size.width, height:Util.size. Width /(750 /1334 ), // This is set to: retains the aspect ratio of the original, otherwise Andro stretch },
});
Do not understand is why the other no problem, that is, the implementation of the Guide page is a problem? Know the big God tell me yo!!!
React Native Solution Android image is squeezed