I am trying to create an app with react native and firebase. One of the features I would like for this app is the ability to upload images. I
Not sure whom this might help, but if you're using MediaLibrary
to load images from the gallery, then the uri comes in the format of uri = file:///storage/emulated/0/DCIM/Camera/filename.jpg
In this case, using fetch(uri)
didn't help me get the blob.
But if you use fetch(uri.replace("file:///","file:/"))
and then follow @sriteja Sugoor's answer, you'll be able to upload the file blob.