在制作 iOS App 时,我们通常会提供 @x、@2x、@3x 图片。根据我对 android 的了解,大约有六种不同的尺寸
我已经开始研究 react-native 并遇到了图像问题。
我的问题是:我是否需要提供所有不同尺寸的图像(即通过结合 iOS 和 android 提供大约 6-7 个图像集)或者只有 1 个图像和其余的将在内部处理?它在更高分辨率的手机上看起来会模糊吗?
谢谢。
最佳答案
您仍然需要提供多个图像。根据Images文档,如果您使用名为 check.png
的图像,您还必须包含 check@2x.png
和 check@3x.png
.
引用:
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.
关于react-native - react-native 中 android 和 iOS 的图像大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42282252/