Lesson 1 ยท Getting started

๐Ÿ“ฑ Mobile App Foundations & Expo

Mobile apps are not just "websites on a phone" โ€” they run differently, look different per platform, and are built with their own set of tools. React Native and Expo are the most common way to build one app that runs on both iOS and Android.

๐Ÿ“ฑ Native, web, and cross-platform

Native apps (Swift/Kotlin) feel the most platform-correct but need separate code for iOS and Android. Web apps run in a mobile browser but cannot access most device features. Cross-platform frameworks like React Native write one codebase that compiles to real native apps on both platforms.

Native: iOS app in Swift + Android app in Kotlin (2 codebases) Cross-platform: one React Native codebase โ†’ runs as a real app on both Web app: one website, opened in a mobile browser, limited device access

🖼️ See it

Native vs cross-platform vs webNative (Swift/Kotlin)Most platform-correct feelTwo separate codebasesFull device API accessReact Native / ExpoOne codebase, both platformsReal native app, not a browserStill fully accesses device APIs

🖼️ See it

Web tags โ†’ React Native componentsWeb (HTML)React Native<div><View><p> / <span><Text><img><Image><button> (onClick)<Pressable> / <Button>(onPress)

๐Ÿงฑ Expo: a faster way to start

Expo is a toolchain built on top of React Native that provides a ready-made set of APIs (camera, location, notifications), a dev workflow (Expo Go for live-reloading on a real device), and a build service โ€” so a project can start without touching native iOS/Android project files directly.

npx create-expo-app my-app cd my-app npx expo start // scan the QR code with the Expo Go app to see it live on a real phone

๐Ÿงฉ The basic building blocks

React Native swaps HTML tags for its own components: <View> instead of <div>, <Text> instead of <p> or <span>, <Image> instead of <img>. All text must be inside a <Text> component โ€” unlike the web, you cannot put raw text directly inside a <View>.

function Greeting() { return ( <View style={{ padding: 16 }}> <Text style={{ fontSize: 20 }}>Hello, mobile!</Text> <Image source={{ uri: "https://example.com/logo.png" }} style={{ width: 50, height: 50 }} /> </View> ); }
Common mistake. Writing <View>Hello</View> directly โ€” React Native throws an error because raw text must be wrapped in <Text>.

๐Ÿ†• Expo in 2026: development builds and the New Architecture

  • Expo Go is great for a first look, but it only supports the newest Expo SDK and cannot include extra native code. Real projects use a development build (npx expo run:android, or eas build --profile development): your own app with the dev tools built in.
  • React Native's New Architecture is on by default and the old one has been removed, so pick libraries that support it.
  • A new create-expo-app project uses Expo Router: every file in the app/ folder is a screen (see the next lesson).

๐Ÿชœ Step by step: choosing native, web or cross-platform

Weigh team skills, device features and budget.

Problem: A small team with React skills needs an iOS and Android app with camera access in 3 months. Choose an approach.

  1. Needs.
    two platforms, camera, short deadline
  2. Native.
    two codebases โ†’ too slow for the team
  3. Web app.
    limited device access, no store presence
  4. Cross-platform.
    React Native with Expo: one codebase, camera module available
  5. Decide.
    React Native + Expo

Answer: React Native with Expo.

Common mistake: choosing native "for performance" when the app has no heavy graphics and the team lacks Swift and Kotlin.
✏️ Quick check · 1 of 8
Platform choice

The main trade-off of writing fully native iOS and Android apps separately is:

What do you gain, and what do you have to maintain twice?
✏️ Quick check · 2 of 8
Platform choice

A mobile web app (a website opened in a phone browser) is generally most limited by:

What can a real installed app reach that a browser tab generally cannot?
✏️ Quick check · 3 of 8
Expo

Expo Go, used during development, mainly lets a developer:

What does Expo Go let you skip while actively developing?
✏️ Quick check · 4 of 8
Components

In React Native, raw text placed directly inside a <View> with no <Text> wrapper will:

What does React Native require around any rendered text?
✏️ Quick check · 5 of 8
Components

The React Native equivalent of a web <div> used purely for layout is:

Which component is the generic, non-text container?
✏️ Quick check · 6 of 8
Touch handling

The React Native equivalent of a web button's onClick handler is typically:

What event name does React Native use instead of onClick?
✍️ Type your answer · 7 of 8

A small app has 1 native iOS codebase, 1 native Android codebase, each needing separate bug fixes for the same issue, versus 1 shared React Native codebase.

How many total codebases need the fix in the native approach, versus the cross-platform approach?

Enter a whole number.
Count the separate codebases needing the same fix in the native approach.
✍️ Type your answer · 8 of 8

A project runs "npx expo start" and scans a QR code on 3 different test phones to check the same screen.

How many separate native builds were required to test on all 3 phones using Expo Go?

Enter a whole number.
Consider what Expo Go actually requires per device.
📝 Lesson quiz · 5 questions
0 / 5
Re-read the lesson, then give it another go.
Question 1 of 5

Writing fully separate native iOS and Android apps trades:

Question 2 of 5

A key limitation of a mobile website (not a real installed app) is:

Question 3 of 5

Expo Go is mainly used to:

Question 4 of 5

Raw text directly inside a React Native <View> with no <Text>:

Question 5 of 5

The React Native equivalent of onClick for touch interactions is: