Created
July 4, 2022 17:16
-
-
Save AngelKrak/882624e0251b817204cbb5d4e85b22fa to your computer and use it in GitHub Desktop.
Unable to load script. Make sure you're either running a Metro server (run 'react-native start') or that your bundle 'index.android.bundle' is packaged correctly for release
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir android/app/src/main/assets | |
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 | |
cd android && ./gradlew clean && cd ../ | |
(Optional) | |
adb reverse tcp:8081 tcp:8081 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment