react-native 中 android 和 iOS 的图像大小
Image sizes for android and iOS in react-native
在制作iOS 应用时,我们通常会提供@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.
在制作iOS 应用时,我们通常会提供@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.