trinet
April 17, 2019, 8:23pm
1
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');
<Image
onLayout={this.onImageLayout}
resizeMode="contain"
source={holidayImg}
style={styles.image}
/>
Any tips on how to debug this?
Hey @trinet ,
If you haven’t already, could you try doing Reset Content and Settings
?
Cheers,
Adam
trinet
April 22, 2019, 5:23am
3
Thanks for the suggestion, but the images still aren’t loading
trinet
April 22, 2019, 9:25pm
4
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.
system
Closed
May 7, 2019, 9:44pm
6
This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.