React Native with Expo
Build real native apps for Android and iOS from one JavaScript/TypeScript codebase, using Expo for tooling, builds and updates.
Beginner · about 4 hours · difficulty 2/5
Learn first: Development Environment, Emulators & Devices
React Native lets you write components in JavaScript or TypeScript using React, and renders them as real native views (View becomes an Android ViewGroup or an iOS UIView). Expo is the recommended framework on top of it: it provides a curated SDK of device APIs, file-based routing, cloud builds and over-the-air updates.
Why we recommend it
- One codebase for both stores, with a very large ecosystem.
- Skills transfer directly from web React, which widens your job options.
- Expo removes most native build pain; you can still drop into native code with development builds and config plugins when needed.
How a project looks
Create an app with npx create-expo-app, run npx expo start, and scan the QR code or launch a simulator. Screens live in an app/ folder (Expo Router), components are functions returning JSX, and styling uses StyleSheet with a Flexbox layout model.
Trade-offs to know
- Very heavy custom rendering (games, complex canvases) is better served by Flutter, Skia-based libraries or native code.
- You will occasionally need to read native error messages from Gradle or Xcode.
Good enough to move on: you created an Expo app, edited a screen, and saw fast refresh update it on your phone.
Key concepts
- What React Native renders under the hood
- Creating an app with create-expo-app
- Expo Go vs development builds
- Project structure and the app folder
- Expo SDK packages
- When to eject into native code
Other options for this step
- Flutter: Build apps for Android, iOS and more from one Dart codebase, with a rendering engine that draws every pixel for consistent UI.
- Native Android (Kotlin + Jetpack Compose): Build Android apps the way Google recommends: Kotlin as the language and Jetpack Compose for declarative UI.
- Native iOS (Swift + SwiftUI): Build iPhone and iPad apps with Swift and SwiftUI, Apple's declarative UI framework, using Xcode on a Mac.
Mini project
Scaffold an Expo app with two screens (Home and About) and a button that navigates between them, running on a real phone.
Check yourself
What is the difference between running your app in Expo Go and in a development build, and when do you need the latter?
Free resources
- Expo documentation (Expo)
- React Native: Introduction (React Native)
- Expo tutorial (Expo)