Skip to content

Commit

Permalink
Update ios simulator device command in react native docs (#32383)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewserong authored Jun 2, 2021
1 parent 022d624 commit 4c8fc2d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/contributors/code/getting-started-native-mobile.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,16 @@ which will attempt to open your app in the iOS Simulator if you're on a Mac and

### Running on Other iOS Device Simulators

To compile and run the app using a different device simulator, use:
To compile and run the app using a different device simulator, use the following, noting the double sets of `--` to pass the simulator option down to the `react-native` CLI.

```
npm run native ios --simulator="DEVICE_NAME"
npm run native ios -- -- --simulator="DEVICE_NAME"
```

For example, if you'd like to run in an iPhone Xs Max, try:

```
npm run native ios --simulator="iPhone Xs Max"
npm run native ios -- -- --simulator="iPhone Xs Max"
```

To see a list of all of your available iOS devices, use `xcrun simctl list devices`.
Expand Down

0 comments on commit 4c8fc2d

Please sign in to comment.