unable to load script make sure you are either running a metro server --solved

Опубликовано: 08 Октябрь 2024
на канале: code with Belal
32,256
475

1.create directory android/app/src/main/assets

2. run following command from project root directory

react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res

----------------------- OR --------------------
npx react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res

3. run again the command : react-native run-android

Hopefully it will work.

Please Subscribe my Channel to inspire me to create next video.

Thank you.