I’m building a mobile app using Expo/React Native. As of yesterday all instances of < Image > that use images stored locally using require() have stopped displaying. Sometime I see a black cross on a white background, sometimes nothing. All instances of < Image > that load images from a server are still functioning. I have no idea what could have caused the issue – I’ve added no new dependencies etc. – but have tried the following to remedy it.
- Checking file paths/names
- Clearing cache and restarting Metro Bundler
- Checking permissions on the relevant files/directories
- Assets Configuration in app.json (assetBundlePatterns)
- Rebuilding project
- Restarting my machine
The odd thing is, other assets from the same “assets” folder as the images are loading fine (fonts, splash screen, etc.). Also, another developer in the team with an identical environment is unable to replicate the issue.
All suggestions welcome!