Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update iOS Simulator device command in React Native docs #32383

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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