SlideShare a Scribd company logo
REACT NATIVE ON
WINDOWS
Abdul Karim
TOOLS TO SET UP MY
DEVELOPMENT ENVIRONMENT
Windows
Visual Studio Code
Android Studio
Built-in emulator in Android Studio
Node Package Manager (NPM)
Node.js (Version 8 or newer)
React Native command line interface (React Native CLI)
1. INSTALL VISUAL STUDIO CODE
Download and install the latest version of Visual Studio Code for
Windows from https://code.visualstudio.com/
2. INSTALL ANDROID STUDIO
Download and install the latest version of Android Studio for Windows
from https://developer.android.com/studio/
Android Studio installs the latest Android SDK by default. React Native
requires Android 6.0 (Marshmallow) SDK or higher. I decided to use
Android 7.1.1 (Nougat). Feel free to use the latest SDK.
2. INSTALL ANDROID STUDIO
(CONTD)
Make sure you have the
following SDK tools
installed:
- Android SDK Build-
Tools 28
- Android SDK Platform-
Tools
- Support Repository
Important: You will need
the Intel x86 Emulator
Accelerator (HAXM installer)
to run the emulator on
Windows. For more
information, please refer to
the following
React native on windows
2. INSTALL ANDROID STUDIO
(CONTD)
Configure the ANDROID_HOME environment variable. Open the
System pane under System and Security in the Windows Control Panel,
then click on Change settings. Open the Advanced tab and click
on Environment Variables. Click on New to create a new
ANDROID_HOME user variable that points to the path to your Android
SDK:
2. INSTALL ANDROID
STUDIO (CONTD)
Finally, add Android Debug Bridge
(ADB) to the PATH environment
variable. This will help you know
which devices are connected or
which emulators are currently
running. Install location of ADB:
C:UsersuserAppDataLocalAndr
oidSdkplatform-toolsadb.exe
3. INSTALL NODE
Download and install the
latest version of Node.js
from https://nodejs.org/e
n/. Note: Npm is installed
with Node.js.
Note: Make sure you add
NPM to the PATH
environment variable.
Once npm is installed,
install React Native CLI by
running the following
command from the
Windows prompt command
line or Integrated Terminal
in Visual Studio
Code. Note: Integrated
Terminal can be found
under View →Integrated
Terminal
Cmd Prompt :
npm install -g react-
React native on windows
4. USING EMBEDDED JDK
Android Studio comes with
an embedded JDK which is
recommended. Make sure
you check the following
option under Welcome Page
→ Configure → Project
Default → Project Structure in
Android Studio:
5. CREATING A NEW REACT NATIVE
APPLICATION
Finally, lets create our first React Native application by running the
following command in your workspace location
Your environment has been set up for using Node.js 12.2.0 (x64) and
npm.
C:Usersuser>react-native init AwesomeProject
React native on windows
5. CREATING A NEW REACT NATIVE
APPLICATION (CONTD)
found 11 low severity vulnerabilities
run `npm audit fix` to fix them, or `npm audit` for details
Run instructions for iOS:
cd C:UsersuserAwesomeProject && react-native run-ios
- or -
Open iosAwesomeProject.xcodeproj in Xcode
Hit the Run button
Run instructions for Android:
Have an Android emulator running (quickest way to get started), or a
device connected.
cd C:UsersuserAwesomeProject && react-native run-android
React native on windows
TROUBLESHOOT
6. REFERENCE
https://facebook.github.io/react-native/docs/getting-started.html
https://nodejs.org/en/
https://developer.android.com/studio/install
https://code.visualstudio.com/docs/?dv=win
https://code.visualstudio.com/docs?start=true

More Related Content

PDF
Run your Appium tests using Docker Android - AppiumConf 2019
DOCX
Set up vs code for salesforce
PDF
How to Install and Configure Jenkins on Centos 7
PPTX
Getting started with mono game on visual studio for mac
PPTX
Fastlane
PDF
Vodafone Mobile Widgets Workshop
PPT
Android Application Development Environment Setup
PDF
Environment Setup for Programming Languages
Run your Appium tests using Docker Android - AppiumConf 2019
Set up vs code for salesforce
How to Install and Configure Jenkins on Centos 7
Getting started with mono game on visual studio for mac
Fastlane
Vodafone Mobile Widgets Workshop
Android Application Development Environment Setup
Environment Setup for Programming Languages

What's hot (19)

PDF
Easy Setup for Parallel Test Execution with Selenium Docker
PPT
Android SDK and PhoneGap
PPTX
Xpirit MeetUp: Docker Windows Workshop
PDF
Docker 101
PDF
Fastlane - Automation and Continuous Delivery for iOS Apps
PDF
How to Dockerize Parallel Execution of Selenium Tests - SQA Days EU, Rgia, La...
PPTX
DockerCon 17 EU: Modernizing .NET Apps with Docker
PPTX
Linuxing in London: Docker Intro Workshop
PPTX
DockerCon EU 2017 - Docker on Windows workshop
PDF
Hot Code Replacement - Alexei Sholik
PPTX
Introduction of phonegap installation and configuration of Phonegap with An...
PDF
Setup Build & Deploy with Jenkins CI
PDF
Getting Started with Dockerization of Selenium Tests Execution - Testwarez 2019
PDF
DevOps Heroes 2019
DOCX
MS VS Code for Python debug
 
PDF
Continuous Integration for your Android projects
PPTX
Mobile test automation in simple steps
PDF
Android SDK: How to Install
PPT
Ng2 cli v1
Easy Setup for Parallel Test Execution with Selenium Docker
Android SDK and PhoneGap
Xpirit MeetUp: Docker Windows Workshop
Docker 101
Fastlane - Automation and Continuous Delivery for iOS Apps
How to Dockerize Parallel Execution of Selenium Tests - SQA Days EU, Rgia, La...
DockerCon 17 EU: Modernizing .NET Apps with Docker
Linuxing in London: Docker Intro Workshop
DockerCon EU 2017 - Docker on Windows workshop
Hot Code Replacement - Alexei Sholik
Introduction of phonegap installation and configuration of Phonegap with An...
Setup Build & Deploy with Jenkins CI
Getting Started with Dockerization of Selenium Tests Execution - Testwarez 2019
DevOps Heroes 2019
MS VS Code for Python debug
 
Continuous Integration for your Android projects
Mobile test automation in simple steps
Android SDK: How to Install
Ng2 cli v1
Ad

Similar to React native on windows (20)

PDF
Lezione 02 React and React Native installation and Configuration
PPTX
androidstudio.pptx
PPTX
Android chapter02-setup1-sdk
PPTX
03 Beginning Android Application Development
PPT
Android Studio Software Installation steps in windows.
PDF
Ch2.setup.node.and.npm
PPTX
Mobile app with cordova
PPTX
Mobile app with cordova
PPTX
Getting started with the NDK
PPT
Ayw android env_setup
PDF
Android installation
PPTX
PPT
Native Android for Windows Developers
PPTX
PhoneGap Application Development - Santhi J Krishnan
PPTX
Methods to set up android app development environment
PPTX
Android the first app - hello world - copy
PDF
Working with the AOSP - Linaro Connect Asia 2013
DOCX
Getting Enter in Android development
PDF
lecture-2-android-dev.pdf
PPT
Webinar on Google Android SDK
Lezione 02 React and React Native installation and Configuration
androidstudio.pptx
Android chapter02-setup1-sdk
03 Beginning Android Application Development
Android Studio Software Installation steps in windows.
Ch2.setup.node.and.npm
Mobile app with cordova
Mobile app with cordova
Getting started with the NDK
Ayw android env_setup
Android installation
Native Android for Windows Developers
PhoneGap Application Development - Santhi J Krishnan
Methods to set up android app development environment
Android the first app - hello world - copy
Working with the AOSP - Linaro Connect Asia 2013
Getting Enter in Android development
lecture-2-android-dev.pdf
Webinar on Google Android SDK
Ad

Recently uploaded (20)

PDF
Basic Mud Logging Guide for educational purpose
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PDF
Computing-Curriculum for Schools in Ghana
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Insiders guide to clinical Medicine.pdf
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
Cell Types and Its function , kingdom of life
PDF
Classroom Observation Tools for Teachers
PDF
Pre independence Education in Inndia.pdf
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
Supply Chain Operations Speaking Notes -ICLT Program
Basic Mud Logging Guide for educational purpose
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
Computing-Curriculum for Schools in Ghana
Final Presentation General Medicine 03-08-2024.pptx
Insiders guide to clinical Medicine.pdf
Microbial disease of the cardiovascular and lymphatic systems
Cell Types and Its function , kingdom of life
Classroom Observation Tools for Teachers
Pre independence Education in Inndia.pdf
O7-L3 Supply Chain Operations - ICLT Program
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
STATICS OF THE RIGID BODIES Hibbelers.pdf
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Abdominal Access Techniques with Prof. Dr. R K Mishra
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Supply Chain Operations Speaking Notes -ICLT Program

React native on windows

  • 2. TOOLS TO SET UP MY DEVELOPMENT ENVIRONMENT Windows Visual Studio Code Android Studio Built-in emulator in Android Studio Node Package Manager (NPM) Node.js (Version 8 or newer) React Native command line interface (React Native CLI)
  • 3. 1. INSTALL VISUAL STUDIO CODE Download and install the latest version of Visual Studio Code for Windows from https://code.visualstudio.com/
  • 4. 2. INSTALL ANDROID STUDIO Download and install the latest version of Android Studio for Windows from https://developer.android.com/studio/ Android Studio installs the latest Android SDK by default. React Native requires Android 6.0 (Marshmallow) SDK or higher. I decided to use Android 7.1.1 (Nougat). Feel free to use the latest SDK.
  • 5. 2. INSTALL ANDROID STUDIO (CONTD) Make sure you have the following SDK tools installed: - Android SDK Build- Tools 28 - Android SDK Platform- Tools - Support Repository Important: You will need the Intel x86 Emulator Accelerator (HAXM installer) to run the emulator on Windows. For more information, please refer to the following
  • 7. 2. INSTALL ANDROID STUDIO (CONTD) Configure the ANDROID_HOME environment variable. Open the System pane under System and Security in the Windows Control Panel, then click on Change settings. Open the Advanced tab and click on Environment Variables. Click on New to create a new ANDROID_HOME user variable that points to the path to your Android SDK:
  • 8. 2. INSTALL ANDROID STUDIO (CONTD) Finally, add Android Debug Bridge (ADB) to the PATH environment variable. This will help you know which devices are connected or which emulators are currently running. Install location of ADB: C:UsersuserAppDataLocalAndr oidSdkplatform-toolsadb.exe
  • 9. 3. INSTALL NODE Download and install the latest version of Node.js from https://nodejs.org/e n/. Note: Npm is installed with Node.js. Note: Make sure you add NPM to the PATH environment variable. Once npm is installed, install React Native CLI by running the following command from the Windows prompt command line or Integrated Terminal in Visual Studio Code. Note: Integrated Terminal can be found under View →Integrated Terminal Cmd Prompt : npm install -g react-
  • 11. 4. USING EMBEDDED JDK Android Studio comes with an embedded JDK which is recommended. Make sure you check the following option under Welcome Page → Configure → Project Default → Project Structure in Android Studio:
  • 12. 5. CREATING A NEW REACT NATIVE APPLICATION Finally, lets create our first React Native application by running the following command in your workspace location Your environment has been set up for using Node.js 12.2.0 (x64) and npm. C:Usersuser>react-native init AwesomeProject
  • 14. 5. CREATING A NEW REACT NATIVE APPLICATION (CONTD) found 11 low severity vulnerabilities run `npm audit fix` to fix them, or `npm audit` for details Run instructions for iOS: cd C:UsersuserAwesomeProject && react-native run-ios - or - Open iosAwesomeProject.xcodeproj in Xcode Hit the Run button Run instructions for Android: Have an Android emulator running (quickest way to get started), or a device connected. cd C:UsersuserAwesomeProject && react-native run-android