Skip to content

Instantly share code, notes, and snippets.

@Drzaln
Last active July 2, 2024 03:18
Show Gist options
  • Select an option

  • Save Drzaln/3bd0930ed7ce633939a515d37b44d3d8 to your computer and use it in GitHub Desktop.

Select an option

Save Drzaln/3bd0930ed7ce633939a515d37b44d3d8 to your computer and use it in GitHub Desktop.
React Native, change metro default terminal

Metro will open a new Terminal window everytime you start your RN app. If you are using other terminal app this is however very annoying. You can change the terminal used to run the initial script:

  1. Open finder window and navigate to <your_project/node_modules/react-native/scripts
  2. Locate launchPackager.command, right click the file, select Get info and then change the Open with: value to your terminal, then click on Change All

This post originally from Oscar Franco Blog

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment