Setting Up a React Native Project in 2025: A Step-by-Step Guide

React Native remains one of the most powerful frameworks for building cross-platform apps using JavaScript or TypeScript. For an efficient React Native setup 2025 , whether you’re building for iOS, Android, or even web, setting up your environment properly ensures smooth development from day one.

In this guide, you’ll learn how to set up a React Native project in 2025 using the latest tooling, including Expo and the React Native CLI, plus a few pro tips to make your workflow faster and cleaner.

Why Expo?

  • Zero native code needed
  • Fast setup and reload
  • Web support included
  • Works on both Windows and macOS

βœ… Step 1: Install Node.js and Expo CLI

Make sure you have Node.js (version 18+):

node -v

Then install Expo CLI globally:

npm install -g expo-cli

For full setup instructions and platform-specific details, you can always refer to the official React Native documentation.

βœ… Step 2: Create Your Project

npx create-expo-app MyAwesomeApp

Choose between JavaScript or TypeScript templates.

Then:

cd MyAwesomeApp
npm start

Expo will give you a QR code to run the app on your real device using the Expo Go app, or launch an emulator.

πŸ› οΈ Option 2: React Native CLI (Advanced Setup)

Use this if you need native modules, custom Android/iOS code, or want full control.

βœ… Step 1: Install Prerequisites

  • Node.js
  • Android Studio (for Android SDK & emulator)
  • Xcode (macOS only, for iOS)
  • Watchman (macOS): brew install watchman

Step 2: Install React Native CLI

npm install -g react-native-cli

βœ… Step 3: Create Your App

npx react-native init MyApp

Run it:

cd MyApp
npx react-native run-android
# or
npx react-native run-ios

🧠 Should You Use Expo or the CLI?

FeatureExpoReact Native CLI
Easy setupβœ…βŒ
Native modules supportLimitedβœ…
OTA updatesβœ…βŒ
Web supportβœ…βŒ
Custom native codeβŒβœ…

🧠 Recommendation: Use Expo unless you need full native capabilities.

πŸ“ Suggested Folder Structure (Scalable)

MyAwesomeApp/
β”œβ”€β”€ assets/
β”œβ”€β”€ components/
β”œβ”€β”€ screens/
β”œβ”€β”€ hooks/
β”œβ”€β”€ navigation/
β”œβ”€β”€ context/
β”œβ”€β”€ utils/
β”œβ”€β”€ App.js / App.tsx

Keep logic modular and easy to test.

  • ESLint (linting)
  • Prettier (formatting)
  • React Native Tools (debugging)
  • React Native Snippets
  • Path Intellisense

πŸš€ Bonus: Add TypeScript Support (If You Used JS)

npm install --save-dev typescript @types/react @types/react-native

Then rename .js files to .tsx and add a tsconfig.json:

{
  "compilerOptions": {
    "jsx": "react-native",
    "lib": ["esnext"],
    "target": "esnext"
  }
}

🏁 Conclusion

React Native setup in 2025 is more streamlined than ever. Whether you choose Expo for its simplicity or the CLI for flexibility, both options are production-ready.

Focus on clean architecture, a good dev workflow, and take advantage of the rich ecosystem React Native provides.

Let me know in the comments if you want a follow-up on folder structure, navigation, or setting up Redux/Zustand!

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top