I have all my static images in a folder called \"images\" in the root of my project. However, after I run the following command to bundle my app, the app works but no image
For a newer version of react-native use the following:
react-native bundle --minify --entry-file index.js --platform ios --dev false --bundle-output ./ios/main.jsbundle --assets-dest ./ios
You will see asset
folder and main.jsbundle
file in the ios
folder. After that go to Xcode
-> build phases
-> copy bundle resources
and then add the asset
folder and main.jsbundle
file. Don't forget to click on the Copy if needed