1

I am new to react native, building an app, that uses a gallery where I can swipe to another image, zoom in, scroll on zoomed images, just passing the url for the images. But there is no cache in it. Reading the Images documentation. It does not have Cache for Android till the current date.

Using the prefetch maybe solve the problem, but I have to modify the library. I have tried others, that also need to modify library, and ended up losing some properties.

How to cache the images without hacking the library? Is there a library that I can cache based on URL?

  • There are lots of Library but if you want native stuffs : http://stackoverflow.com/questions/11511548/best-way-to-cache-images-on-ios-app – Arun Kumar Jan 23 '17 at 11:11
  • @ArunKumar, thanks for your answer, but not exactly, I do not want native stuff. But if it is the only way, i will go for it, so far i want React Native approaches. – Franclin Cabral Jan 23 '17 at 11:21
  • So, the resolution was hack the library i am using and add a caching library that handle both for IOS and Android. Thanks to all who tried to answer this! – Franclin Cabral Jan 24 '17 at 10:50

1 Answers1

-2

I solved the problem, I forked the repos, modified it using a library that caches for IOS and Android, and installed from the forked repo.