Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let rnfbURI = RNFetchBlob.wrap(image.uri)
- Blob
- .build(rnfbURI, { type : 'image/png;'})
- .then((blob) => {
- // upload image using Firebase SDK
- firebase.storage()
- .ref()
- .child('images/')
- .put(blob, { contentType : 'image/jpg' })
- .then((snapshot) => {
- }).catch((error) => {
- console.log(error);
- Alert.alert(error);
- })
- });
Add Comment
Please, Sign In to add comment