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

Android FastImage keeps refreshing on background to foreground, iOS is fine. #1022

Open
BrandonCao opened this issue Feb 14, 2024 · 3 comments
Labels

Comments

@BrandonCao
Copy link

Describe the bug
I have an issue where the FastImage component is reloading an image when going from background to foreground. However it's not happening on iOS. I confirmed this by adding console logs to the onLoad, onLoadStart and onLoadEnd props to the component.

Expected behavior
Once the image is loaded and the app goes from background to foreground, it does not refetch.

Screenshots
If applicable, add screenshots to help explain your problem.

Dependency versions

  • React Native version: 0.67.5
  • React version: 17.0.2
  • React Native Fast Image version: 8.6.3

Note: if these are not the latest versions of each I recommend updating as extra effort will not be taken to be backwards compatible, and updating might resolving your issue.

@BrandonCao BrandonCao added the bug label Feb 14, 2024
@forchello
Copy link

Hi! I found a solution for this problem, check this out

Just use 8.6.3 version for now and add patch from instruction. Works perfectly

@BrandonCao
Copy link
Author

Hi! I found a solution for this problem, check this out

Just use 8.6.3 version for now and add patch from instruction. Works perfectly

it's unfortunately still flickering for me after adding the patch and the images are still refetching when going from BG to FG.

@forchello
Copy link

Can you share part of your code where you using fast image?

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

No branches or pull requests

2 participants