Image sizes for android and iOS in react-native

后端 未结 1 2029
野趣味
野趣味 2021-02-19 03:37

While making iOS Apps, we generally used to supply @x,@2x,@3x images. And based on my knowledge in case of android, there was some approx six different sizes

I have sta

相关标签:
1条回答
  • 2021-02-19 03:51

    You still need to provide multiple images. According to the Images documentation, if you are using an image named check.png, you also have to include check@2x.png and check@3x.png.

    Quoting:

    The packager will bundle and serve the image corresponding to device's screen density. For example, check@2x.png, will be used on an iPhone 7, whilecheck@3x.png will be used on an iPhone 7 Plus or a Nexus 5. If there is no image matching the screen density, the closest best option will be selected.

    0 讨论(0)
提交回复
热议问题