react-native-fast-image icon indicating copy to clipboard operation
react-native-fast-image copied to clipboard

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

Open BrandonCao opened this issue 1 year ago • 3 comments

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 avatar Feb 14 '24 17:02 BrandonCao

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

forchello avatar Feb 20 '24 09:02 forchello

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.

BrandonCao avatar Mar 01 '24 03:03 BrandonCao

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

forchello avatar Mar 01 '24 07:03 forchello