1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-09 11:46:01 +02:00
tldr/pages/common/react-native-start.md
Managor 36735f324a
common*: refresh old pages part 8 (#16293)
Co-authored-by: Juri Dispan <juri.dispan@posteo.net>
2025-05-03 05:57:20 +03:00

734 B

react-native start

Command-line tools to start the React Native server. More information: https://github.com/facebook/react-native/tree/main/packages/community-cli-plugin#start.

  • Start the server that communicates with connected devices:

react-native start

  • Start the metro bundler with a clean cache:

react-native start --reset-cache

  • Start the server in a custom port (defaults to 8081):

react-native start --port {{3000}}

  • Start the server in verbose mode:

react-native start --verbose

  • Specify the maximum number of workers for transforming files (default is the number of CPU cores):

react-native start --max-workers {{count}}

  • Disable interactive mode:

react-native start --no-interactive