Thuta Learning
React Native
BasicMobile DevelopmentIntermediate

Development Environment Setup

React NativeLesson 220 min

What you'll walk away with

  • Explain the React and native-platform behavior of Development Environment Setup
  • Test accessibility, failure, and lifecycle cases
  • Write maintainable, testable, and performant React Native

Explain it simply

Development Environment Setup, in plain language

Expo is a toolchain built on top of React Native that lets you run/build/publish your app without touching native code (Xcode, Android Studio) directly — it significantly cuts down setup time for beginners. React Native CLI, on the other hand, gives you full control when you need to add custom native modules, but it requires Xcode/Android Studio setup. With the Expo Go app (installed on your phone), you can live-preview your app just by scanning a QR code on a physical device — no need to set up an emulator/simulator at all.

Problem → Why → Solution

The problem — why this concept matters

Trying to run npx commands without Node.js installed, causing errors

A common mistake

Trying to scan with Expo Go without connecting your phone and computer to the same Wi-Fi network (connection won't work)

Core concept — understand how it works

Understand Development Environment Setup as part of a React Native 0.87 system connecting React 19.2, Hermes V1, Fabric, TurboModules, and the Strict TypeScript API. Keep the boundary between shared TypeScript and platform-specific native behavior explicit.

Mental model
  1. JavaScript state
  2. native component and layout
  3. Android or iOS UI

Explain the React and native-platform behavior of Development Environment Setup

Core syntax or pattern

bash
# Create a new Expo project
npx create-expo-app my-first-app
cd my-first-app

# Start the development server
npx expo start

# Scan the QR code with the Expo Go app on your phone

Understand Development Environment Setup as part of a React Native 0.87 system connecting React 19.2, Hermes V1, Fabric, TurboModules, and the Strict TypeScript API. Keep the boundary between shared TypeScript and platform-specific native behavior explicit.

Read the code step by step

  1. JavaScript state# Create a new Expo project

    Expo is a toolchain built on top of React Native that lets you run/build/publish your app without touching native code (Xcode, Android Studio) directly — it significantly cuts down setup time for beginners. React Native CLI, on the other hand, gives you full control when you need to add custom native modules, but it requires Xcode/Android Studio setup. With the Expo Go app (installed on your phone), you can live-preview your app just by scanning a QR code on a physical device — no need to set up an emulator/simulator at all.

  2. native component and layout# Start the development server

    Understand Development Environment Setup as part of a React Native 0.87 system connecting React 19.2, Hermes V1, Fabric, TurboModules, and the Strict TypeScript API. Keep the boundary between shared TypeScript and platform-specific native behavior explicit.

  3. Android or iOS UI# Scan the QR code with the Expo Go app on your phone

    Test an original Development Environment Setup example on Android and iOS with small and large screens, font scaling, dark mode, keyboard and screen reader use, slow/offline networking, denied permissions, and background/foreground transitions. Use DevTools, tests, and a release build where relevant.

Execution flow
  1. JavaScript state
  2. native component and layout
  3. Android or iOS UI

Success

Explain the React and native-platform behavior of Development Environment Setup

Failure

Trying to run npx commands without Node.js installed, causing errors

Let's think about this for a moment

Expo is a toolchain built on top of React Native that lets you run/build/publish your app without touching native code (Xcode, Android Studio) directly — it significantly cuts down setup time for beginners. React Native CLI, on the other hand, gives you full control when you need to add custom native modules, but it requires Xcode/Android Studio setup. With the Expo Go app (installed on your phone), you can live-preview your app just by scanning a QR code on a physical device — no need to set up an emulator/simulator at all.

Let's connect this to a real scenario

Running npx create-expo-app my-app creates a fresh project scaffold. Running npx expo start shows a QR code in the terminal — scan it with the Expo Go app on your phone and you can live-preview the app. Every time you save your code, it'll hot reload on your phone.

Code Example

bash
# Create a new Expo project
npx create-expo-app my-first-app
cd my-first-app

# Start the development server
npx expo start

# Scan the QR code with the Expo Go app on your phone
You should see
A QR code appears in the terminal, and scanning it with the Expo Go app shows the app on your phone.

5-Minute Try-It

Try running npx create-expo-app my-first-app. Install the Expo Go app on your phone and try scanning the QR code.

A Quick Heads-Up

The Expo Go app only works for Expo projects — previewing a project with custom native modules (React Native CLI) requires a development build.

Real-world usage

How to apply it in a real project

Test an original Development Environment Setup example on Android and iOS with small and large screens, font scaling, dark mode, keyboard and screen reader use, slow/offline networking, denied permissions, and background/foreground transitions. Use DevTools, tests, and a release build where relevant.

Mini challenge

Build it yourself

Test an original Development Environment Setup example on Android and iOS with small and large screens, font scaling, dark mode, keyboard and screen reader use, slow/offline networking, denied permissions, and background/foreground transitions. Use DevTools, tests, and a release build where relevant.

  • Rebuild the example without copying it
  • Test a normal input and an edge case
  • Predict the compiler or output result before running it
bash
# Create a new Expo project
npx create-expo-app my-first-app
cd my-first-app

# Start the development server
npx expo start

# Scan the QR code with the Expo Go app on your phone

Expected: Explain the React and native-platform behavior of Development Environment Setup

Show hint

Test an original Development Environment Setup example on Android and iOS with small and large screens, font scaling, dark mode, keyboard and screen reader use, slow/offline networking, denied permissions, and background/foreground transitions. Use DevTools, tests, and a release build where relevant.

Quick quiz 1 / 3

What best describes the core idea of Development Environment Setup?

Quick quiz 2 / 3

Which mistake should you avoid first?

Quick quiz 3 / 3

How should this be applied in a real project?

What to remember

  • JavaScript state → native component and layout → Android or iOS UI
  • Understand Development Environment Setup as part of a React Native 0.87 system connecting React 19.2, Hermes V1, Fabric, TurboModules, and the Strict TypeScript API. Keep the boundary between shared TypeScript and platform-specific native behavior explicit.
  • Trying to run npx commands without Node.js installed, causing errors
  • Test an original Development Environment Setup example on Android and iOS with small and large screens, font scaling, dark mode, keyboard and screen reader use, slow/offline networking, denied permissions, and background/foreground transitions. Use DevTools, tests, and a release build where relevant.

React Native 0.87 Release — React Native

Easy traps

  • Trying to run npx commands without Node.js installed, causing errors
  • Trying to scan with Expo Go without connecting your phone and computer to the same Wi-Fi network (connection won't work)
  • Assuming one simulator's happy path proves every real-device, release-build, permission, accessibility, offline, and lifecycle path.

Hands-on Exercise

Test an original Development Environment Setup example on Android and iOS with small and large screens, font scaling, dark mode, keyboard and screen reader use, slow/offline networking, denied permissions, and background/foreground transitions. Use DevTools, tests, and a release build where relevant.

You'll know it worked when: A QR code appears in the terminal, and scanning it with the Expo Go app shows the app on your phone.

Updated on

Progress is saved only in this browser on this device. It isn't synced to other devices.

Report a problem with this lessonOpens your email app with this lesson's address filled in — nothing is sent until you send it.