Skip to content

Commit 3285f0c

Browse files
authored
Replace deprecated CLI flags (#3698)
1 parent fe13c0b commit 3285f0c

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

docs/hermes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ Confirm that you are using the `.hbc` file and also benchmark the before/after a
4040
To see the benefits of Hermes, try making a release build/deployment of your app to compare. For example:
4141

4242
```shell
43-
$ npx react-native run-android --variant release
43+
$ npx react-native run-android --mode release
4444
```
4545

4646
or for iOS:
4747

4848
```shell
49-
$ npx react-native run-ios --configuration Release
49+
$ npx react-native run-ios --mode Release
5050
```
5151

5252
This will compile JavaScript to bytecode during build time which will improve your app's startup speed on device.

docs/publishing-to-app-store.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ The static bundle is built every time you target a physical device, even in Debu
5151
You can now build your app for release by tapping `⌘B` or selecting **Product****Build** from the menu bar. Once built for release, you'll be able to distribute the app to beta testers and submit the app to the App Store.
5252

5353
:::info
54-
You can also use the `React Native CLI` to perform this operation using the option `--configuration` with the value `Release` (e.g. `npx react-native run-ios --configuration Release`).
54+
You can also use the `React Native CLI` to perform this operation using the option `--mode` with the value `Release` (e.g. `npx react-native run-ios --mode Release`).
5555
:::
5656

5757
Once you are done with the testing and ready to publish to App Store, follow along with this guide.

docs/running-on-device.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ Type the following in your command prompt to install and launch your app on the
137137
$ npx react-native run-android
138138
```
139139

140-
> Hint: You can also use the `React Native CLI` to generate and run a `Release` build (e.g. `npx react-native run-android --variant=release`).
140+
> Hint: You can also use the `React Native CLI` to generate and run a `Release` build (e.g. `npx react-native run-android --mode=release`).
141141
142142
<h2>Connecting to the development server</h2>
143143

@@ -262,7 +262,7 @@ $ npx react-native run-android
262262

263263
> If you get a "bridge configuration isn't available" error, see [Using adb reverse](running-on-device.md#method-1-using-adb-reverse-recommended).
264264
265-
> Hint: You can also use the `React Native CLI` to generate and run a `Release` build (e.g. `npx react-native run-android --variant=release`).
265+
> Hint: You can also use the `React Native CLI` to generate and run a `Release` build (e.g. `npx react-native run-android --mode=release`).
266266
267267
<h2>Connecting to the development server</h2>
268268

website/versioned_docs/version-0.71/hermes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ Confirm that you are using the `.hbc` file and also benchmark the before/after a
4040
To see the benefits of Hermes, try making a release build/deployment of your app to compare. For example:
4141

4242
```shell
43-
$ npx react-native run-android --variant release
43+
$ npx react-native run-android --mode release
4444
```
4545

4646
or for iOS:
4747

4848
```shell
49-
$ npx react-native run-ios --configuration Release
49+
$ npx react-native run-ios --mode Release
5050
```
5151

5252
This will compile JavaScript to bytecode during build time which will improve your app's startup speed on device.

website/versioned_docs/version-0.71/publishing-to-app-store.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ The static bundle is built every time you target a physical device, even in Debu
5151
You can now build your app for release by tapping `⌘B` or selecting **Product****Build** from the menu bar. Once built for release, you'll be able to distribute the app to beta testers and submit the app to the App Store.
5252

5353
:::info
54-
You can also use the `React Native CLI` to perform this operation using the option `--configuration` with the value `Release` (e.g. `npx react-native run-ios --configuration Release`).
54+
You can also use the `React Native CLI` to perform this operation using the option `--mode` with the value `Release` (e.g. `npx react-native run-ios --mode Release`).
5555
:::
5656

5757
Once you are done with the testing and ready to publish to App Store, follow along with this guide.

website/versioned_docs/version-0.71/running-on-device.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ $ npx react-native run-android
5959

6060
> If you get a "bridge configuration isn't available" error, see [Using adb reverse](running-on-device.md#method-1-using-adb-reverse-recommended).
6161
62-
> Hint: You can also use the `React Native CLI` to generate and run a `Release` build (e.g. `npx react-native run-android --variant=release`).
62+
> Hint: You can also use the `React Native CLI` to generate and run a `Release` build (e.g. `npx react-native run-android --mode=release`).
6363
6464
<h2>Connecting to the development server</h2>
6565

@@ -137,7 +137,7 @@ Type the following in your command prompt to install and launch your app on the
137137
$ npx react-native run-android
138138
```
139139

140-
> Hint: You can also use the `React Native CLI` to generate and run a `Release` build (e.g. `npx react-native run-android --variant=release`).
140+
> Hint: You can also use the `React Native CLI` to generate and run a `Release` build (e.g. `npx react-native run-android --mode=release`).
141141
142142
<h2>Connecting to the development server</h2>
143143

@@ -262,7 +262,7 @@ $ npx react-native run-android
262262

263263
> If you get a "bridge configuration isn't available" error, see [Using adb reverse](running-on-device.md#method-1-using-adb-reverse-recommended).
264264
265-
> Hint: You can also use the `React Native CLI` to generate and run a `Release` build (e.g. `npx react-native run-android --variant=release`).
265+
> Hint: You can also use the `React Native CLI` to generate and run a `Release` build (e.g. `npx react-native run-android --mode=release`).
266266
267267
<h2>Connecting to the development server</h2>
268268

0 commit comments

Comments
 (0)