Launches the Metro Bundler in a new window using the specified terminal path.
--tasks <list>
default: 'installDebug'
Run custom gradle tasks. If this argument is provided, then --mode option is ignored.
Example: yarn react-native run-android --tasks clean,installDebug.
--active-arch-only
default: false
Build native libraries only for the current device architecture for debug builds.
--list-devices
default: false
List all available Android devices and simulators and let you choose one to run the app.
--interactive, -i
Manually select a task and device/simulator you want to run your app on.
[!WARNING]
This flag is running ./gradlew tasks under the hood, which might take some time for more complex apps. If that affects your project, consider using --mode and --deviceId flags instead.
build-android
Usage:
npx react-native build-android [options]
Builds Android app.
Options
--mode <string>
default: debug
Mode to build the app. Either 'debug' (default) or 'release'.
--extra-params <string>
Custom params that will be passed to gradle build command.
Example: