问题描述
在使用最新版本的XCode(12.0)遇到下一个问题后,我正在使用RN 0.61.5-在iOS模拟器(iOS 13.5,iOS 14.0)上,所有图像(本地图像和通过http / https加载)都是空白。这是使用本地图像的示例
const source = require('../Assets/Images/Images/logo/logo_white.png');
<Image style={styles.image} width={90} height={90} source={source} />
和通过https加载的图像
<Image style={styles.image} width={90} height={90} source={{uri: 'https://reactjs.org/logo-og.png'}} />
我可以使用检查器查看所有图像,它显示的是宽度和高度都为空白的图像
有人可以帮助我解决这个问题吗?
解决方法
这个patch帮助我解决了我的问题