Open jaaahh opened 6 years ago
+1, showing half of image.
I had a similar issue where image would be displayed only have loaded or with some weird artifacts. They would be cached and stay this way until app relaunch. Any Idea how this happens?
Is this intermittent or can it be recreated with the same image file repeatedly?
On Tue, May 8, 2018, 3:45 AM David Schumann notifications@github.com wrote:
I had a similar issue where image would be displayed only have loaded or with some weird artifacts. They would be cached and stay this way until app relaunch. Any Idea how this happens?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/billmalarky/react-native-image-cache-hoc/issues/22#issuecomment-387315037, or mute the thread https://github.com/notifications/unsubscribe-auth/ABxTU5vgzT0SWx4IW2sw2ChG-IoIF5c0ks5twU0bgaJpZM4TVNe5 .
I was not able to reproduce this in any way. Has only occurred 2-3 times since we have used it. So 0.1% of the time?
Also there is nothing special about the images it occurs with. An arary of similar images (dimensions all about 1200 x 500) all hosted on S3 is displayed. In one instance one image was affected (similar to OPs image, image was party loaded and rest of image was white), in another one 2 were affected. In that case some weird graphical errors were visible. (thin colorful squiggly lines)
This is probably an issue related to the RNfetchblob (https://github.com/joltup/react-native-fetch-blob) dependency if I had to guess. Looks like react-native-image-cache-hoc is on the latest version of RNfetchblob so upgrading won't patch.
For what it's worth, so long as the image was downloaded to the cache (ie you didn't supply a permanent={true} prop), sooner or later the broken image will be garbage collected from the cache and re-downloaded which solves the problem in the case that something just intermittently went wrong during the download process.
can someone check this issue with v2.0.0?
tested on android 6 v2.0.0
Just faced this on ios
Any way around this?
I have fixed this bug in my branch! => https://github.com/SunXingZ/react-native-image-cache-hoc.git
I have fixed this bug in my branch! => https://github.com/SunXingZ/react-native-image-cache-hoc.git
changed to your repo.
I have fixed this bug in my branch! => https://github.com/SunXingZ/react-native-image-cache-hoc.git
sometimes it will not success when i change the pic use cacheImage
@SunXingZ did you try to open a PR with the fixing changes to this repo?
@SunXingZ any updates on this issue's fix? I am also facing this consistently.
images are showing when its not fully loaded.