0
votes

I created AwesomeProject and run react-native run-android in root directly of my project, message in android simulator is as follows:

Unable to load script.Make sure you are either running a Metro server or that your bundle 'index.android.bundle' is packaged correctly for release.

To fix this err i try to run :
react-native bundle --platform android --dev false --entry-file index.android.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/
but it didn't work.message in android simulator

1

1 Answers

0
votes

You have to start the bundler first, run

 npm start 

or

 react-native start 

in the root of your project.