From 2ad572be6e0667138d20546f60de8cc738d71cc4 Mon Sep 17 00:00:00 2001 From: Andrew Serong <14988353+andrewserong@users.noreply.github.com> Date: Wed, 2 Jun 2021 16:08:30 +1000 Subject: [PATCH] Update ios simulator device command in react native docs --- docs/contributors/code/getting-started-native-mobile.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/contributors/code/getting-started-native-mobile.md b/docs/contributors/code/getting-started-native-mobile.md index 3ea4f91876b0b..a3dbeedcd98a3 100644 --- a/docs/contributors/code/getting-started-native-mobile.md +++ b/docs/contributors/code/getting-started-native-mobile.md @@ -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`.