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!
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 likehttps://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 usingFastImage.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!