-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Corrupted Images on first load #7
Comments
Hi @uncledent Thanks for writing the issue! This issue is not related to the library :) We also face it sometimes depending network issues. Waiting to get an update from RN fetch blob library. Refer here Take a look and try to get some more information. I will try to update this dependency ASAP. |
Thank you for your answer, @jjayasagar. Maybe we could do some temporary workaround? For example render/load image twice on first load or something like this? |
Maybe we could try, however, not on the master branch!! You could try it on a forked repository and use it in your code :) Thanks! |
A quick workaround for this issue is to rerender the image when it is loaded, like this:
This is ugly, but less ugly as corrupted images. |
Thanks @uncledent I will quickly and let you know. |
Now you can use
Please try and let me know if it helps! Thanks!! |
Unfortunately the issue is still there, workaround helps sometimes but not always. And it adds ugly flickering of the image :( Can anyone think of some better workaround for this? |
That's true @uncledent. It has to be fixed in the |
@jjayasagar i think this may be caused by the situation that we try to show the image right after it was downloaded by rn-fetch-blob, but at that time it is not fully saved to the file system. I try to add a small timeout before updating state of the component, it seems to work. I will do some more investigation on this. |
@uncledent Thank you for taking time and putting the efforts. Would be really nice to your thoughts 👍 |
@uncledent How did you implement this short timeout? This is really annoying us. The correct image even loads for the first second, then is drawn over by the half grey/green image. |
Hi, what are the latest news on this issue? We have encountered it with expo-file-system downloadAsync. |
Hi @loismeira This repo is no longer maintained! Sorry for that. |
When I install the app and fetch news with images, it stays a fallback image for several seconds and then the image appears corrupted:
What direction should I keep digging?
The lib is great! Thank you!
The text was updated successfully, but these errors were encountered: