【发布时间】:2020-04-18 20:55:26
【问题描述】:
我试图找到一种有效的方法来在上传图片后立即在 firebase 中获取图片的 url。 我想避免为此编写一个完全独立的函数……而是想将它包含在承诺链中。见下面的代码
import storage from '@react-native-firebase/storage';
storage()
.ref('path/to/remote/folder')
.putFile('uri/of/local/image')
.then(() => {
//Id like to use getDownloadUrl() function here;
})
【问题讨论】:
标签: react-native firebase-storage react-native-firebase