React Native : Setup and Installation

React Native : Setup and Installation

Prerequisites

Before we begin, make sure you have the following installed on your Windows machine:

  1. Node.js: JavaScript runtime for building scalable network applications.

    from

    https://nodejs.org/en

  2. Java Development Kit (JDK): Required for Android development.

    https://download.oracle.com/java/22/latest/jdk-22_windows-x64_bin.exe (sha256)

  3. Android Studio: Includes the Android SDK, which is necessary for running and testing Android applications.

    1. Download and install Android Studio.

    2. During the installation, ensure the following components are selected:

      • Android SDK

      • Android SDK Platform

      • Android Virtual Device

  4. Add the following environment variables:

    • ANDROID_HOME: Set this to the path of your Android SDK. The default location is usually C:\Users\<Your-Username>\AppData\Local\Android\Sdk.

    • Path: Add the following paths to your Path variable:

        %ANDROID_HOME%\emulator
        %ANDROID_HOME%\tools
        %ANDROID_HOME%\tools\bin
        %ANDROID_HOME%\platform-tools
      
  5. Install React Native CLI
    1. Open a new Command Prompt or PowerShell window.

    2. Run the following command to install the React Native CLI globally:

       npm install -g react-native-cli
      
  1. Create a New React Native Project
npx create-expo-app Myapp --template blank
7. Run Your React Native App
  1. Navigate to your project directory:

     cd Myapp
    
  2. To run your app on an Android emulator or connected device, execute:

     npx expo start
    

From now onwards i will be creating one react native project and add daily progress in the form of blog to help others build the same