React Native
Installing React Native :
Requirements:
· 64-bit Microsoft® Windows® 8/10
· x86_64 CPU architecture; 2nd generation Intel Core or newer, or AMD CPU with support for a Windows Hypervisor
· 8 GB RAM or more
· 8 GB of available disk space minimum (IDE + Android SDK + Android Emulator)
1280 x 800 minimum screen resolution
Download React native app :
After installing react native open an command prompt and run the code it’s given below
choco install -y nodejs-lts openjdk11
If the above command is error, try this command
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin
then install nodejs,from the below link
https://nodejs.org/en/download/
next install android studio
https://developer.android.com/studio
Step 1: create-react-native
After installing NodeJS and NPM successfully in your system you can proceed with installation of create-react-native-app
C:\Users\acer> npm install -g create-react-native
Step 2 : cerate project
create a new react native project as shown below.
C:\Users\acer>cd Desktop
C:\Users\acer\Desktop>create-react-native-app sundar
Here create project in to the desktop and (sundar) is an file name for a project
Step 3 : Install React native cli
You can install react native command line interface on npm, using the install -g react-native-cli command as shown below.
npm install -g react-native-cli
to run react native use the command givens below
react-native run-android
then nodejs also run
then emulator will open in the window
Comments