diff --git a/docs/next/environment-setup.html b/docs/next/environment-setup.html index e9730b9db30..e203c0596d8 100644 --- a/docs/next/environment-setup.html +++ b/docs/next/environment-setup.html @@ -344,12 +344,16 @@ brew install watchman

Click "Next" then "Finish" to create your AVD. At this point you should be able to click on the green triangle button next to your AVD to launch it, then proceed to the next step.

Running your React Native application

+

Run react-native start inside your React Native project folder:

+
cd AwesomeProject
+npx react-native start
+

If you use the Yarn package manager, you can use yarn instead of npx when running React Native commands inside an existing project.

-

Run npx react-native run-ios inside your React Native project folder:

-
cd AwesomeProject
-npx react-native run-ios
+

react-native start starts Metro Bundler, which you can read more about here.

+

Run react-native run-ios inside your React Native project folder:

+
npx react-native run-ios
 

You should see your new app running in the iOS Simulator shortly.

AwesomeProject on iOS

@@ -361,16 +365,20 @@ npx react-native run-ios

The above command will automatically run your app on the iOS Simulator by default. If you want to run the app on an actual physical iOS device, please follow the instructions here.

Running your React Native application

-
-

If you use the Yarn package manager, you can use yarn instead of npx when running React Native commands inside an existing project.

-
-

Run npx react-native start inside your React Native project folder:

+

Run react-native start inside your React Native project folder:

cd AwesomeProject
 npx react-native start
 
+
+

If you use the Yarn package manager, you can use yarn instead of npx when running React Native commands inside an existing project.

+

On another terminal, run npx react-native run-android:

cd AwesomeProject
-npx react-native run-android
+npx react-native start
+
+

react-native start starts Metro Bundler, which you can read more about here.

+

Run react-native run-android inside your React Native project folder:

+
npx react-native run-android
 

If everything is set up correctly, you should see your new app running in your Android emulator shortly.

diff --git a/docs/next/environment-setup/index.html b/docs/next/environment-setup/index.html index e9730b9db30..e203c0596d8 100644 --- a/docs/next/environment-setup/index.html +++ b/docs/next/environment-setup/index.html @@ -344,12 +344,16 @@ brew install watchman

Click "Next" then "Finish" to create your AVD. At this point you should be able to click on the green triangle button next to your AVD to launch it, then proceed to the next step.

Running your React Native application

+

Run react-native start inside your React Native project folder:

+
cd AwesomeProject
+npx react-native start
+

If you use the Yarn package manager, you can use yarn instead of npx when running React Native commands inside an existing project.

-

Run npx react-native run-ios inside your React Native project folder:

-
cd AwesomeProject
-npx react-native run-ios
+

react-native start starts Metro Bundler, which you can read more about here.

+

Run react-native run-ios inside your React Native project folder:

+
npx react-native run-ios
 

You should see your new app running in the iOS Simulator shortly.

AwesomeProject on iOS

@@ -361,16 +365,20 @@ npx react-native run-ios

The above command will automatically run your app on the iOS Simulator by default. If you want to run the app on an actual physical iOS device, please follow the instructions here.

Running your React Native application

-
-

If you use the Yarn package manager, you can use yarn instead of npx when running React Native commands inside an existing project.

-
-

Run npx react-native start inside your React Native project folder:

+

Run react-native start inside your React Native project folder:

cd AwesomeProject
 npx react-native start
 
+
+

If you use the Yarn package manager, you can use yarn instead of npx when running React Native commands inside an existing project.

+

On another terminal, run npx react-native run-android:

cd AwesomeProject
-npx react-native run-android
+npx react-native start
+
+

react-native start starts Metro Bundler, which you can read more about here.

+

Run react-native run-android inside your React Native project folder:

+
npx react-native run-android
 

If everything is set up correctly, you should see your new app running in your Android emulator shortly.