Steps to create first React Native App (original) (raw)

Last Updated : 13 Jan, 2026

React Native is an open-source framework by Meta (Facebook) for building native mobile apps using JavaScript and a single codebase.

Prerequisites

Before starting with React Native development using Expo, ensure the following requirements are met:

Expo

Expo is a framework and platform built on top of React Native that simplifies building, running, and deploying apps across multiple platforms using a single codebase.

Step-by-Step Implementation

Step 1: Create a React Native Project

Open your terminal and run the command below.

npx create-expo-app app-name --template

_Note: Replace the app-name with your app name for example : react-native-demo-app

Select the blank template to generate a minimal React Native project setup.

npx create-expo-app@latest project-name

install_packages

**Result of Method 1 and Method 2:

It completes the project creation and displays a message: "Your Project is ready!" as shown in the image below.

Project_created_successfully

Go into the created folder and start the server by using the following command.

cd "project-name"

Step 2: Reset-Project (Only for Method 2)

Reset the project to the default boilerplate by running the command below.

npm run reset-project

app-example_folder

Step 3: Run the app

To start the react-native program, execute this command in the terminal of the project folder.

npx expo start

Then, the application will display a QR code.

QrCode

**Output of Method 1:

method1output

**Output of Method 2:

First_React_Native_App

**Example: We will render a text and put some style on the text, like text color and background color.

**App.js | App/index.tsx:

JavaScript `

import { Text, View, StyleSheet } from "react-native";

export default function Index() { return ( GeeksforGeeks ); }

const styles = StyleSheet.create({ container: { flex: 1, backgroundColor: '#008000', alignItems: 'center', justifyContent: 'center', }, text: { color: '#FFFFFF', }, });

`

**Note: Whether you are using method 1 or method 2, you can use above code.

**Output of Method 1:

method1_output

**Output of Method 2:

Customized_app