LinuxCommandLibrary

react-native-start

Start the React Native Metro bundler server

TLDR

Start Metro bundler

$ react-native start
copy
Start on specific port
$ react-native start --port [8082]
copy
Start and reset cache
$ react-native start --reset-cache
copy
Start with verbose output
$ react-native start --verbose
copy

SYNOPSIS

react-native start [options]

DESCRIPTION

react-native start launches the Metro JavaScript bundler, a development server that compiles and serves JavaScript bundles to React Native apps running on simulators, emulators, or physical devices. It watches source files for changes and pushes updates to connected apps via hot reloading, enabling rapid development without full rebuilds.
The bundler listens on port 8081 by default and can be customized with --port. The --reset-cache flag clears the bundler's transformation cache, which is useful when resolving stale module resolution issues or after changing configuration.

PARAMETERS

--port port

Server port (default 8081).
--reset-cache
Clear bundler cache.
--verbose
Verbose output.
--host host
Server hostname.
--https
Enable HTTPS.
--config path
Metro config file.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community