Skip to content
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

Image reloaded on rerender #144

Open
Aryk opened this issue May 11, 2020 · 4 comments
Open

Image reloaded on rerender #144

Aryk opened this issue May 11, 2020 · 4 comments

Comments

@Aryk
Copy link

Aryk commented May 11, 2020

Great library! But I'm having some issues with caching and rerendering. See below:

demo1

Things I checked:

The default image you see is fed as the "uri". It does not change. It has no query parameters that changes. Its just a simple public url.

Indeed it seems like the image is cached, but I'm not sure why it has to go through the fade-in effect all over again.

I even tried using React.memo around the Image component, and still same thing.

Does this happen to other people? What am i missing?

      <Image
        uri={uri}
        preview={{uri: previewUri}}
        style={{width: circleStyle.width, height: circleStyle.height}}
      />
@maxyharr
Copy link

Having the same issue. I don't understand the flicker. Not using preview, but also not sure how to use with cachemanager.

@komelabbbas
Copy link

@rrebase
Copy link

rrebase commented Oct 15, 2020

fadeDurationseems to be android only, but it happens in IOS as well. I decided to decrease transitionDuration to reduce the flicker. Has anyone solved this?

@namendes
Copy link

namendes commented Jan 17, 2021

This probably due to the component you have around the Image component

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants