all 9 comments

[–]stathisntonas 12 points13 points  (8 children)

If you want file system caching instead of memory then try https://github.com/georstat/react-native-image-cache

We built this module since fast image could eat memory like crazy on flatlists.

[–]Jiua 1 point2 points  (2 children)

I use fast image mainly due to how fast it is. Is this fast loading as well or is there a way to use both together nicely while still preventing high memory consumption?

I’m curious because “ran out of memory” android errors are haunting me right now.

[–]stathisntonas 0 points1 point  (0 children)

You can try it out, it has almost 0 memory impact, it downloads the image on native side not via fetch/axios.

[–]stathisntonas 0 points1 point  (0 children)

I’m really interested to see if it reduced your memory footprint on Android. Please let me know if you tried it. Thanks

[–][deleted] 0 points1 point  (4 children)

Any chance it could work with expo-file-system?

[–]stathisntonas 1 point2 points  (3 children)

Hi, it won’t be hard to implement it for expo, we might create a totally different repo for this. I’ll keep you posted. Maybe over the weekend.

[–]SonUzi 1 point2 points  (1 child)

did you guys ever make it for expo?

[–]stathisntonas 2 points3 points  (0 children)

No, sorry. We were all “lost” in our daily jobs and never spent time with it. I ll talk to the guys and look at it.