Skip to content

Instantly share code, notes, and snippets.

@AngelKrak
Created July 4, 2022 17:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AngelKrak/882624e0251b817204cbb5d4e85b22fa to your computer and use it in GitHub Desktop.
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
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