TwicPics / components

A Web component library that brings the power of TwicPics to your favorite web framework.
MIT License
53 stars 2 forks source link

TwicImg for react-native doesn't seem to get cached #84

Closed jamiechong closed 3 months ago

jamiechong commented 6 months ago

My Expo based React Native app doesn't seem to want to cache the images. Every time I load the exact same image, the network tab in inspector is showing a network request for the same image.

I will note that even the Image imported from react-native behaves this way. But if I use Expo Image, caching works as expected.

Any thoughts on why caching is not working?

mbgspcii commented 6 months ago

Hi @jamiechong

You're right. We don't manage caches. We are adding this request for a feasibility study and will get back to you with an update.

Thank you for this issue.

mbgspcii commented 3 months ago

Hi @jamiechong

If you're still interested, we've just released version 0.29.0, which manages image caching. Activating the cache requires you to add expo-image to your project's list of dependencies.

Here's a demo github repo.

Please note the modification made to the component setup here.

If you have any problems or questions, please do not hesitate to contact us.

Happy coding.