Guest User

Untitled

a guest
Dec 14th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. let rnfbURI = RNFetchBlob.wrap(image.uri)
  2. Blob
  3. .build(rnfbURI, { type : 'image/png;'})
  4. .then((blob) => {
  5. // upload image using Firebase SDK
  6. firebase.storage()
  7. .ref()
  8. .child('images/')
  9. .put(blob, { contentType : 'image/jpg' })
  10. .then((snapshot) => {
  11.  
  12. }).catch((error) => {
  13. console.log(error);
  14. Alert.alert(error);
  15.  
  16. })
  17. });
Add Comment
Please, Sign In to add comment