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 is the function to capture the image. Now I want to save the captured image and upload it to Firebase storage.
this.setState({path: data.uri}) updates the path to clicked Image's location.
How do I use react native fetch blob to upload my image in firebase storage? Please help
I'm currently using react-native-camera - ^1.6.3 and firebase - ^5.0.3