【发布时间】:2019-05-20 17:44:21
【问题描述】:
takePicture = async function() {
if (this.camera) {
const options = { quality: 0.5, base64: true, mirrorImage: true };
const data = await this.camera.takePictureAsync(options)
this.setState({path: data.uri})
}
}
takePicture 是捕获图像的函数。现在我想保存捕获的图像并将其上传到 Firebase 存储。
this.setState({path: data.uri}) 更新点击图像位置的路径。
如何使用 react native fetch blob 将我的图像上传到 firebase 存储?请帮忙
我目前正在使用 react-native-camera - ^1.6.3 和火力基地 - ^5.0.3
【问题讨论】:
标签: firebase react-native firebase-storage react-native-camera