Устранение ошибки unable to load script metro server
Устранение ошибки unable to load script metro server
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
Комментарии
Отправить комментарий