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