从firebase.storage().ref('asd')获取图像的引用后,如何在此处检索图像并将其分配给图像组件?
const ref = firebase.storage().ref('path/to/image.jpg');
<Image
source={?}
/>发布于 2020-01-30 18:31:28
这可能有点晚了,但是,这对我来说很有效。我对存储提出了一个单独的请求,getDownloadURL()在rnfirebase v6中的putFile()上不可用。
const ref = firebase.storage().ref("images/name.jpg");
ref.getDownloadURL()
.then(url => {console.log(url)})
.catch(e=>{console.log(e);})https://stackoverflow.com/questions/53010751
复制相似问题