React Native Setup Guide for Ubuntu Linux for Mobile App Development | 2023 | Step-by-Step Tutorial

3 min read 1 hour ago
Published on Feb 23, 2026 This response is partially generated with the help of AI. It may contain inaccuracies.

Table of Contents

Introduction

This tutorial will guide you through the process of setting up React Native on your Ubuntu Linux system for mobile app development. Whether you're new to programming or an experienced developer, this step-by-step guide will help you create a smooth development environment, enabling you to build cross-platform mobile applications effectively.

Step 1: Install Node.js and npm

Node.js and npm (Node Package Manager) are essential for React Native development. Follow these steps to install them:

  1. Open your terminal.
  2. Update your package index:
    sudo apt update
    
  3. Install Node.js and npm:
    sudo apt install nodejs npm
    
  4. Verify the installation by checking the versions:
    node -v
    npm -v
    

Step 2: Install React Native CLI

The React Native Command Line Interface (CLI) is required to create and manage your React Native projects. Here's how to install it:

  1. Install the React Native CLI globally using npm:
    sudo npm install -g react-native-cli
    

Step 3: Set Up Your Ubuntu Environment for Mobile App Development

To ensure a smooth development experience, configure your environment:

  1. Install Java Development Kit (JDK) for Android development:
    sudo apt install openjdk-11-jdk
    
  2. Set up Android Studio for Android app development:
    • Download Android Studio from the official website.
    • Follow the installation instructions specific to Ubuntu.
  3. Configure Android SDK and emulator:
    • Open Android Studio and follow the setup wizard.
    • Ensure you install the Android SDK and create an Android Virtual Device (AVD) for testing.

Step 4: Create Your First React Native Project

Now that your environment is set up, you can create your first React Native project. Follow these steps:

  1. Navigate to your desired project directory:
    cd ~/your-project-directory
    
  2. Create a new React Native project:
    npx react-native init YourProjectName
    
  3. Change into your project directory:
    cd YourProjectName
    

Step 5: Run Your App on an Android Emulator

To see your app in action, launch it on an Android emulator:

  1. Start the Android emulator from Android Studio.
  2. In your project directory, run:
    npx react-native run-android
    
  3. Your React Native app should now launch in the emulator.

Conclusion

You have successfully set up React Native on your Ubuntu Linux system. You can now create and run mobile applications using React Native.

Next Steps

  • Explore React Native documentation to learn more about components and APIs.
  • Try building a simple app to practice your skills.
  • Consider joining online communities for support and collaboration.

Happy coding!