[go: up one dir, main page]

0% found this document useful (0 votes)
20 views6 pages

React-Native Env Setup: 1. Node Installation Procedure To Follow

To set up a React Native environment, you need to install Node, the React Native CLI, JDK, Android Studio, and a code editor. You install Node using apt-get on Ubuntu, then use npm to install the React Native CLI globally. You need JDK version 8. You download and install Android Studio, which also installs the Android SDK. You then configure the ANDROID_HOME environment variable. Finally, you create a project folder, initialize a new React Native project, change folder permissions, and can begin testing your new project.

Uploaded by

tanishq
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views6 pages

React-Native Env Setup: 1. Node Installation Procedure To Follow

To set up a React Native environment, you need to install Node, the React Native CLI, JDK, Android Studio, and a code editor. You install Node using apt-get on Ubuntu, then use npm to install the React Native CLI globally. You need JDK version 8. You download and install Android Studio, which also installs the Android SDK. You then configure the ANDROID_HOME environment variable. Finally, you create a project folder, initialize a new React Native project, change folder permissions, and can begin testing your new project.

Uploaded by

tanishq
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 6

React-Native Env Setup

1. Node
2. React Native command line interface
3. JDK
4. Android Studio
5. And an Editor of your choice

1. Node Installation Procedure to follow


a. Add Node.js PPA
Only we need to download LTS release of Node. Use following commands:
$$ sudo apt-get install curl python-software-properties
$$ curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -

b. Install Node.js on Ubuntu


$$ sudo apt-get install nodejs
c. Check Node.js and NPM Version
$$ node -v $$ npm -v
2. React Native command line interface
Node comes with npm, which lets you install the React Native command line interface.

Run the following command in a Command Prompt or shell:

$$ npm install -g react-native-cli

3. JDK
React Native requires version 8 of the Java SE Development Kit (JDK). {Important}

Go to site given below and follow the Instructions :


4. Android Studio

• Download Android Studio


• Install Android Studio
• Install the Android SDK
• Configure the ANDROID_HOME environment variable

• Download Android Studio

• Install Android Studio

Choose a “Custom” setup when prompted to select an installation type.


Make sure the boxes next to all of the following are checked:

• Android SDK
• Android SDK Platform
• Android Virtual Device

Then, click “Next” to install all of these components.


• Install the Android SDK
• Configure the ANDROID_HOME environment variable
5. Download any editor of your choice

6. Create folder “ProjectFolder” on Desktop


Now
$$ open terminal && type the following commands
cd ~/Desktop/ProjectFolder

$$ sudo react-native init AwesomeProject

$$ sudo chmod -R 777 AwesomeProject

$$ cd AwesomeProject
7. And Follow the link given below for testing AwesomeProject

You might also like