flatlogic / react-native-starter

🚀A powerful react native starter template that bootstraps development of your mobile application
https://reactnativestarter.com
Mozilla Public License 2.0
2.22k stars 712 forks source link

Image assets don't show up in iOS Simulator #65

Open tankadesign opened 4 years ago

tankadesign commented 4 years ago

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/components@2x.png

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

jeremycod commented 4 years ago

@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.

kylanhurt commented 4 years ago

Also having the same issue!

tankadesign commented 4 years ago

No I gave up on it pretty quick

kylanhurt commented 4 years ago

@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

jeremycod commented 4 years ago

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