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:
Looks like some images didn’t download properly. What I usually do is, checking if the file exists in the cache directory but also if the size makes sense.