CodeLinkIO / Firebase-Image-Upload-React-Native

Demo to handle image with Firebase storage
129 stars 22 forks source link

how can show image from firebase? #7

Open xuanvan229 opened 7 years ago

xuanvan229 commented 7 years ago

hey guy. how i can show my image from firebase storage to my project? . It not work on android ?

baodinh commented 7 years ago

load image from firebase :

const loadImage = (filename) => {
    return new Promise((resolve, reject) => {
        const imageRef = storage.ref('images').child(filename);
        var uri = imageRef.getDownloadURL();
        resolve(uri);
    });

}