react-native-starter icon indicating copy to clipboard operation
react-native-starter copied to clipboard

Image assets don't show up in iOS Simulator

Open tankadesign opened this issue 4 years ago • 5 comments

Xcode says files not found on local image assets. The image assets are not being automatically bundled. Running react-native with FORCE_BUNDLING flag also does not work. Is this a problem with React Native?

Could not find image file:///Users/falcon/Library/Developer/CoreSimulator/Devices/4767FE10-9492-4243-A538-47D8510D175B/data/Containers/Bundle/Application/EF822A42-3354-446B-91A8-F31B7831C5B4/ReactNativeStarter.app/assets/assets/images/tabbar/[email protected]

Note the double assets/assets/ directory call. Why is that happening?

I'm using NVM to manage node. Running Node 12.8.3 Xcode 11.6

tankadesign avatar Jul 28 '20 20:07 tankadesign

@tankadesign Did you manage to figure out what is the problem? I'm having the same issue, but it's happening both with my project that was created from this kit (which used to work fine) and on the original react-native-starter kit code which was also running fine earlier.

Everything is fine when actual iPhone device is attached instead of simulator.

jeremycod avatar Sep 27 '20 17:09 jeremycod

Also having the same issue!

smilingkylan avatar Oct 01 '20 00:10 smilingkylan

No I gave up on it pretty quick

tankadesign avatar Oct 01 '20 02:10 tankadesign

@tankadesign @jeremycod You can upgrade to react-native version 63.3. That worked for me. Also, there is this supposed solution: https://github.com/facebook/react-native/issues/29279#issuecomment-658244428

smilingkylan avatar Oct 07 '20 16:10 smilingkylan

@kylanhurt Thanks a lot for sharing this. Upgrading to RN 63.3 worked for me.

jeremycod avatar Oct 08 '20 03:10 jeremycod