Local images aren't loading in Simulator after upgrading from Expo 30 -> 31

I’m trying to upgrade our project from Expo 30 -> 31 and I’m running into an issue where local Images don’t load in the iOS simulator, but they load on Android and iOS devices. This is the code

const holidayImg = require('../../../../../assets/images/holiday-banner.png'); 

Any tips on how to debug this?

Hey @trinet,

If you haven’t already, could you try doing Reset Content and Settings?


Thanks for the suggestion, but the images still aren’t loading

We had many “Require cycle” warnings in our code - after silencing them images now load. I silenced them with the following suggestion: https://github.com/facebook/metro/issues/287#issuecomment-444177106

Interesting. Thanks for sharing that link.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.