Pre-Requisite For React Native SDK
Software Requirements
- Android Studio (IDE)
- Android SDK
- Java
- NodeJs
- NPM
- React Native CLI
First, you need Node.js installed on your system. If Node.js is already installed, you can skip this step.
Node JS Installation
-e3c1e72de262914090660c3cf75be99c.png)
Download the latest Node.js from: nodejs.org/en.
Once the setup is downloaded on your system, run the .msi downloaded file and follow the prompt instructions to install the application.
Furthermore, make ascertain that the Node and NPM have been installed.
Use the below commands to check the version:
node -v
npm –v
React Native CLI
Use the below command to install React Native CLI.
npm install -g react-native-cli
Android Development Environment
Download & Install the Android Studio https://developer.android.com/studio/install.html
-3b1ef4c1643534fd93dae6536ddde535.png)
The Android Studio lets you run the Reactive Native application in an emulator and test the application.
Verify React Native Installation
We’ll be building a sample project using React Native by running the following command:
react-native init MySampleApp
Now, run below commands in the terminal from the folder where you have created the application.
react-native start
react-native run-android
Make sure you’ve started the emulator on your machine. This is what the sample project will look like in the emulator:
-2a44c840c1c4b7fea279fe9020a7368f.png)
Congratulations!
At this point, your development environment for the React Native SDK is fully set up.