Skip to main content

Command Palette

Search for a command to run...

React Native: Installation Guide for Linux

Published
•2 min read•View as Markdown
React Native: Installation Guide for Linux
I
I write blogs around React Native and App development

Things to have before installing React native (We will be using React CLI)

  1. Node

  2. Java Development Kit

  3. Android Development Kit

Installing Node

  • Go to below mentioned site and download the any version of Node

    Node Installation

  •   node --version
      sudo apt install  npm
      npm --version
    

Installing Java Development Kit

sudo apt update
sudo apt install openjdk-17-jre-headless
java --version
  • React Native currently recommends version 17 of the Java SE Development Kit (JDK)

  • After running all these if you can see the version then installation is finished

Installing Android Development Kit

  • Go to below site to and click the download . Do next next then it will take some time to install

  • Android Studio Download

Points to do after successfully installing Android Studio

  • Extract the File after downloading

  • Navigate to the folder where the extracted folder is present

  • After that Your Android Studio GUI will be launched

  • Make sure to tick the below to successfully work it without any problem

  • After clicking all these click on apply then it will get downloaded. Wait some time till it downloads

  • After installing Configure the ANDROID_HOME environment variable

  •   nano ~/.bashrc
    
  • Add these lines at the bottom of the file:

  •   export ANDROID_HOME=$HOME/Android/Sdk
      export PATH=$PATH:$ANDROID_HOME/emulator
      export PATH=$PATH:$ANDROID_HOME/platform-tools
    
  • Save and exit (Ctrl+O, then Enter, then Ctrl+X)

  • Apply the changes:

  •   source ~/.bashrc
    
  • Run the below commands to check it variables are setup successfullt

  • Also run the below commands

  •   adb --version
      emulator --version
    

🎉 Awesome! Congratulations on setting up everything successfully! Now you’re ready to build React Native apps on your Linux machine with full Android support.

I
Irfan1y ago

If anyone is facing any kind of problem, just leave a comment, or reach out to me on my socials

1

More from this blog

React-Native-Guide

10 posts

This is a beginner friendly blog on React Native.