

If you want to run your project on a hardware Android device, connect the device to your computer with a USB cable. Open your new "MyReactNativeApp" directory: cd MyReactNativeApp from the Windows Command Prompt, PowerShell, Windows Terminal, or the integrated terminal in VS Code (View > Integrated Terminal). Use npx, the package runner tool that is installed with npm to create a new React Native project. The Java JDK comes packaged with Android Studio v2.2+, but if you need to update your JDK separately from Android Studio, use the Windows 圆4 Installer. You may also want to consider installing and using the Windows Terminal for working with your preferred command-line interface (CLI), as well as, Git for version control. We recommend installing the latest LTS version for new projects.

Install NodeJS for Windows You may want to consider using Node Version Manager (nvm) for Windows if you will be working with multiple projects and version of NodeJS. ANDROID_HOME: C:\Users\username\AppData\Local\Android\Sdk.JAVA_HOME: C:\Program Files\Android\Android Studio\jre\bin.If you've chosen a specific location to install the Java and Android SDKs, be sure to update the variable paths accordingly. The default paths for the Java and Android SDKs are as follows. Enter the Variable name and value (path).

In the Windows search menu, enter: "Edit the system environment variables", this will open the System Properties window.

We recommend using the latest SDK.Ĭreate environment variable paths for the Java SDK and Android SDK: React Native requires Android 6.0 (Marshmallow) SDK or higher. Android Studio installs the latest Android SDK by default. Install Visual Studio Code (or your code editor of choice). Get started with React Native by installing required tools Working with React Native requires an understanding of JavaScript fundamentals. It is used to develop applications for Android, iOS, Web and UWP (Windows) providing native UI controls and full access to the native platform. React Native is an open-source mobile application framework created by Facebook. This guide will help you to get started using React Native on Windows to create a cross-platform app that will work on Android devices.
