Skip to content

Instantly share code, notes, and snippets.

@Asinox
Created January 2, 2020 19:10
Show Gist options
  • Save Asinox/de270130cb17ba9bfa9668c7c16a5fe4 to your computer and use it in GitHub Desktop.
Save Asinox/de270130cb17ba9bfa9668c7c16a5fe4 to your computer and use it in GitHub Desktop.
Fix React Native: 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
Edit node_modules/metro-config/src/defaults/blacklist.js
Change sharedBlacklist to:
var sharedBlacklist = [
/node_modules[\/\\]react[\/\\]dist[\/\\].*/,
/website\/node_modules\/.*/,
/heapCapture\/bundle\.js/,
/.*\/__tests__\/.*/
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment