Skip to main content

Understanding the React Native development environment

Your goal: Run an app on your phone, change its greeting, and explain how that change reaches the screen.

Before you begin: Read Introduction to React Native. You will need a computer with internet access and an Android phone or iPhone for this walkthrough.

Know what each tool does​

Your development environment is the set of tools you use to write and run an app. You only need a few to begin:

ToolWhat you use it for
A code editor, such as VS CodeOpen the project folder and edit files.
A terminalEnter commands and read development messages.
Node.jsRun development tools on your computer.
npm and npxInstall JavaScript packages and run command-line tools. They come with a normal Node.js installation.
Expo CLIStart and manage the development server.
MetroPrepare your JavaScript code and assets for the app.
Expo GoOpen a compatible learning project on your phone.

Node.js runs your development tools on the computer; the mobile app has its own JavaScript runtime. Metro processes your source files into code the app can load. Expo CLI starts that process for you.

Choose a way to run the app​

We will use Expo Go for this first exercise. It is a ready-made app with a fixed collection of native capabilities. This lets you begin without compiling your own native app.

When your project needs native code that Expo Go does not contain, use a development build: a development version of your own app that includes its native dependencies. Expo supports this path too. Moving beyond Expo Go does not mean abandoning Expo. Read Expo’s development build introduction when you reach that point.

You may also hear bare React Native used for projects where you manage the Android and iOS native projects directly. React Native can run without a framework; Expo libraries can also be used in projects that manage native files. These are workflow choices, not different component languages.

For local native builds, Android uses Android Studio and the Android SDK, together with a compatible Java Development Kit. Local iOS builds use Xcode on macOS. An emulator or simulator is a virtual device on your computer; setting one up also requires platform tools. Follow the official native environment guide for your operating system and React Native version if you choose that route. You do not need those installations for the physical-phone exercise below.

1. Prepare your computer and phone​

Install the LTS (long-term support) version of Node.js, then install a code editor if you do not already have one. Expo supports macOS, Windows, and Linux; see its current system requirements.

Open your terminal—Terminal on macOS, PowerShell on Windows, or your Linux terminal—and check:

node --version
npm --version

Both commands should print a version number. If either is not found, reopen the terminal after installing Node.js and try again.

Install Expo Go on your phone using the links in Expo’s environment setup guide. Connect your computer and phone to the same Wi-Fi network.

2. Create a learning project​

In the terminal, move to the folder where you keep practice projects. Run:

npx create-expo-app@latest reading-list
cd reading-list

If npm asks to download create-expo-app, accept the prompt. The first command creates a folder named reading-list and installs the project’s packages. The second command moves your terminal into that folder.

npx runs the project-creation tool; @latest requests its latest published version. The default template includes TypeScript and Expo Router, which organizes screens by file. We will leave navigation alone for now. See the template reference.

Expo Go and SDK versions

An Expo SDK is a versioned set of libraries. Your project’s SDK must be compatible with the installed Expo Go app. When checked on October 27, 2026, Expo’s documentation described an SDK 58 transition: the command above, without a template flag, creates SDK 57 for physical-device Expo Go use. Recheck the project creation guidance if the prompts or versions differ. Choosing the newest SDK independently can leave Expo Go unable to open the project. Later examples follow this SDK 57 starting point. Concepts such as components and state carry forward, but package versions and template files may differ in a newer SDK; keep your project’s compatible versions together.

3. Open the app on your phone​

From inside reading-list, run:

npx expo start

Keep this terminal open. The development server prints a QR code. On Android, scan it using Expo Go; on iPhone, scan it with Camera and follow the link to Expo Go.

For a physical iPhone, the current Expo instructions require Expo CLI and Expo Go to use the same Expo account. If you do not have an Expo account, create a free one when prompted. Run npx expo login on your computer and sign in to that account in Expo Go. Follow Expo’s start-developing instructions if an account message appears.

Checkpoint: You should see the template’s welcome screen on your phone. Get this working before editing any files.

4. Make one visible change​

Open the entire reading-list folder in your editor. In the current default template, the starting screen is src/app/index.tsx. Templates can change: if that file is absent, search the project for the welcome text visible on your phone. Some earlier templates place the home screen in app/(tabs)/index.tsx.

Replace only the greeting inside its text component with:

Welcome to your reading list!

Keep the surrounding tags and save the file. A template may use a helper called ThemedText instead of Text; leave it in place for this exercise. It wraps the underlying text component with the template’s styling.

Your phone should display the new greeting. Fast Refresh applies most component edits while the app is running. A refresh can sometimes reset the screen’s state; it is a development convenience, not a way to publish an app.

Here is the loop you just completed:

StepWhat happened
Edit and saveYou changed a source file on your computer.
Prepare the updateThe development server used Metro to process the change.
Show the resultThe connected app loaded the update and displayed the new text.

You did not compile a new native app for a text edit. Changes to native dependencies can require rebuilding a development build, which is a different process.

If something gets stuck​

SymptomFirst thing to check
The terminal cannot find the projectRun commands inside reading-list, where package.json lives.
The QR code does not connectConfirm the server is running and both devices use the same Wi-Fi.
Wi-Fi blocks the connectionStop the server with Ctrl+C, then try npx expo start --tunnel. Follow any installation prompt; tunnel connections can be slower.
Expo Go reports an incompatible projectCompare the project SDK with Expo Go’s supported version using the version mismatch guide.
The old greeting remainsSave the file, confirm you edited the visible screen, and check the terminal for errors. Reopen the project in Expo Go if needed.

Expo’s connection troubleshooting guidance explains local networking and tunnel mode.

When you finish, stop the server with Ctrl+C. To resume later, open a terminal in reading-list and run npx expo start again.

Check your understanding​

Close your editor for a moment and explain what the development server does. Why does it need to keep running during this exercise? How is Expo Go different from a development build?

Compare your answer

The server prepares and serves the app’s code during development. Keeping it running lets your phone receive edits. Expo Go provides a fixed native app for compatible projects; a development build contains your own app’s native dependencies.

You are ready to continue when: You can restart the server, open the app, and change the greeting again without following every step.

Next: Understanding React Native Components and JSX. Build a Reading List screen from reusable pieces.