【发布时间】:2017-06-19 06:03:44
【问题描述】:
我想使用 Image.getSize (https://facebook.github.io/react-native/docs/image.html) 来获取图像的大小,但第一个参数要求图像源在 URI 中,但我不能将 URI 与静态文件一起使用,我只能使用 Require .
因此,是否可以在静态文件上使用 Image.getSize 或者我必须找到另一种方法?
【问题讨论】:
标签: image react-native static-files