Expo Require Image Path Fails to Resolve

Hello, when I am trying to build my app I keep getting an error related to the source of my images: image
the error says: Unable to resolve “./assets/logo.PNG” from “Login.js”
this is the code throwing the error:
<Image
source={require(‘./assets/logo.PNG’)}
resizeMode=“contain”
style={{
width: 200,
height: 200,
}}
/>

This error is happening when i try to access any of my images. I don’t know what to do.

Nevermind. I found that I had bad images so I just resaved them and it worked.

2 Likes

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