Skip to content
Advertisement

Firebase Storage – Upload Image with React Native, Error loading Preview

This is the code which I use to upload images to firebase storage

JavaScript

But when I check the firebase console it shows, error loading preview, and the file size is 9B for a image. Is there something Im missing. [Firebase Console Pic]

Im using Expo managed, expo-image-picker to select images.

Advertisement

Answer

I found a way, I had to create a blob and then upload the blob to firebase

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement