2025-03-14 21:59:59 -06:00
|
|
|
# react-native start
|
|
|
|
|
|
2025-07-24 22:27:13 -06:00
|
|
|
> Start the React Native server.
|
2025-05-08 12:26:01 -06:00
|
|
|
> More information: <https://github.com/facebook/react-native/tree/main/packages/community-cli-plugin#start>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- 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`
|