External images stop loading in Android

After navigating between views a few times my external images stop showing up. I found the follow react-native issues: https://github.com/facebook/react-native/issues/7408

I’ve tried adding a unique key and resizeMethod=“resize” to the images, but this didn’t help.

Has anyone run into this issue using Expo before?

Is this reproduceable on a minimal app? Perhaps on https://snack.expo.io?

@tomhuijer I’m having the same issue, let me know if you find a solution. I’ll post back here if I figure it out first. So far, I’ve tried:

  • resizeMethod="resize"
  • Add random key prop (e.g. key={+new Date()})
  • Add random strings to the end of the URL (e.g. uri: uri.com/image.jpg?string=pleasedontcacheme)

I thought this was a caching issue, but now I’m not so sure.

@buishi I ended up resetting the navigation state as described by https://reactnavigation.org/docs/navigators/navigation-actions#Reset. This seems to clear images from memory, but also breaks android’s native back button functionality.

That’s so random… the only reason I can think that that would help is memory issues (which seems likely, reading through other threads), but navigation shouldn’t take that much memory…