react-native-cacheable-image icon indicating copy to clipboard operation
react-native-cacheable-image copied to clipboard

Special characters in image URL will break the caching

Open morelazers opened this issue 8 years ago • 3 comments

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 👍

morelazers avatar Jan 09 '17 01:01 morelazers

Hmm.. can you describe which characters?

jayesbe avatar Jan 30 '17 00:01 jayesbe

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(/%/, '.');

morelazers avatar Jan 30 '17 10:01 morelazers

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

tjkang avatar Feb 15 '17 08:02 tjkang