【发布时间】:2019-08-19 02:00:46
【问题描述】:
你好,如何在 react native 中显示来自 firestore 数据库的图像数组?我试过了,但没有图像显示
{this.props.user.map((images)=>{
return (
<View>
<Image style={ {width: 350, height: 300}} source={{uri: images.photos}} />
</View>
);
})}
我在屏幕底部收到这条黄色警告
''警告:失败的道具类型:提供给'ForwardRef(图像)'''的道具'源'无效
【问题讨论】:
-
图片的路径值是多少?
-
我的意思是实际值。
-
它是图片网址@hongdevelop的路径
-
我的意思是真实路径 ex)
http://www.exam.com/exam.png -
ok @hongdevelop 这里是路径picsum.photos/id/1001/5616/3744, picsum.photos/id/1002/4312/2868
标签: firebase react-native google-cloud-firestore