Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preloading images from Firebase Storage #775

Open
eqlion opened this issue Mar 1, 2021 · 3 comments
Open

Preloading images from Firebase Storage #775

eqlion opened this issue Mar 1, 2021 · 3 comments

Comments

@eqlion
Copy link

eqlion commented Mar 1, 2021

I'm using rnfirebase to store images in my app and fastimage to show them. The problem is when I get the download link from firebase (storage().ref().getDownloadURL()), it returns me a link that looks something like https://firebasestorage.googleapis.com/v0/b/PROJECT_NAME/ENCODED_PATH_TOIMAGE.jpg?alt=media&token=TOKEN. I can use this url to show the image (as per usual), however when I try to preload it using FastImage.preload([{uri}]), it doesn't seem to work: the image starts loading only when it is on the screen. Any help would be appreciated! Thanks in advance!

@mohity777
Copy link

did u resolve it?

@Karanbsankey
Copy link

@eqlion any luck on resolving this issue?

@gabrielgallardoe
Copy link

gabrielgallardoe commented Oct 9, 2022

Hi.
I preloaded (not showing) the firebase images with Fast Image.preload([{uri: url}]); for offline use later, currently with no problems

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants