DylanVann / react-native-fast-image

🚩 FastImage, performant React Native image component.
MIT License
8.09k stars 1.47k forks source link

Preloading images from Firebase Storage #775

Open eqlion opened 3 years ago

eqlion commented 3 years ago

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 commented 3 years ago

did u resolve it?

Karanbsankey commented 3 years ago

@eqlion any luck on resolving this issue?

gabrielgallardoe commented 1 year ago

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