Skip to content

Instantly share code, notes, and snippets.

@ikayz
Last active April 22, 2022 06:39
Show Gist options
  • Save ikayz/d5f727fd42ea3677171baed60386518f to your computer and use it in GitHub Desktop.
Save ikayz/d5f727fd42ea3677171baed60386518f to your computer and use it in GitHub Desktop.
React Native Metro Bundler Closing After Starting App
// Copy the code below and replace in [project_name]\node_modules\metro-config\src\defaults\blacklist.js
// Solution by https://github.com/tusharojha
// Note you'd have to do this for every project
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