- SDK Version: 40.0
- Platforms: Android/IOS
Hi everyone!
I’m implementing an algorithm to cache images using the expo-file-system library, but sometimes the images end up being corrupted, with a gray background (as you can see in the attached screenshots in the end).
To be honest, I just adapted what Ben Awad did here. You can see my code here:
The shorthash code comes from the shorthash library
And I use the “cacheFile” function inside an useEffect, like this:
Somethimes it works well, sometimes I get images like these:
Any ideas on what might be happening?