Skip to content
0:00 / 0:00

#expo#reactnative#firebasestorage

Upload Images to Firebase in Expo

ProProgramming101

1.8K subscribers • 1 video on Hallway

YouTube

Intermediate. Assumes working knowledge.

27K views8 years ago1 recommendation

Mobile developmentFlutter and React NativeHTTP, REST and GraphQL

How to convert image paths to blobs and upload them to Firebase Storage in an Expo React Native application.

Learn how to upload images to Firebase from within an Expo application. This is only available in Expo SDK 26+. Code: github.com/ProProgramming101/expo-firebase-image-upload/ Issues: If you're having trouble with fetch(), check out this code: github.com/expo/firebase-storage-upload-example/blob/master/… ***

Why it's here

1 person recommends this

What people say. Recommended as an easy way to convert image paths to blobs and upload them in Expo.

Sriteja Sugooron Stack Overflow • Recommends

On “Convert image path to blob react native”

If you are using expo (>=26), then you can do it easily with the following lines of code. uploadImage = async(imageUri) => { const response = await fetch(imageUri); const blob = await response.blob(); var ref = firebase.storage().ref().child("image.jpg"); return ref.put(blob); } Reference: link to this video