react-native-cacheable-image
react-native-cacheable-image copied to clipboard
Special characters in image URL will break the caching
I fixed this with a simple .replace for my cases, but it definitely needs a more stable solution.
Thanks so much for the module, super useful 👍
Hmm.. can you describe which characters?
The period and percent characters, . & % needed to be replaced in my image path before caching would work. I used:
let safeCacheKey = cacheKey.replace(/\//g, '.').replace(/%/, '.');
I am using firebase storage but got error as well because of url format
https://firebasestorage.googleapis.com/v0/b/abc.appspot.com/o/images%2Ftemp?alt=media&token=9f605564-9daa-46df-96c9-ea3ddf432b79