React Native

One codebase, two stores.

▶ the lesson · narrated sketch video · tap for sound

the intro

React Native lets you build real iOS and Android apps using the React you already know. You write JavaScript, and the components render as actual native UI — not a webview. One codebase, two app stores, hot reload to keep you sane.

the sample

react, but it ships to the app store

import { View, Text, Button } from
  'react-native'

<View>
  <Text>Hello mobile!</Text>
</View>

fun fact ✦

Instagram, Discord and Shopify all ship React Native. Good company.

the docs

the deep dive

the ideas behind the video — concepts, diagrams, a walkthrough and the traps to avoid

React Native took the best idea in frontend — describe the UI as a function of state — and swapped the renderer. Your components still reconcile in JavaScript, but instead of producing DOM nodes they drive real platform views: a View becomes a UIView on iOS and a native android.View. That is why it feels native, and why most of your React knowledge transfers on day one.

same React, different renderer

your React codeFabric renderernative views
your code stays JavaScript; the pixels on screen are native

key terms

Metro

The bundler for React Native. It packs your JavaScript (run on the Hermes engine) and rebuilds on every save.

save → bundle in under a second

native components

The primitives you render. They are thin wrappers over real platform views, not HTML.

<View> = UIView on iOS

Fast Refresh

The edit-and-see loop: saves push into the running app in under a second, keeping component state.

tweak padding 50 times fast

native module

A bridge to platform code — camera, bluetooth, payments — when pure JS cannot reach it.

expo-camera ships one

how it works

  1. 1
    Start with Expo

    npx create-expo-app gives you a project that runs on your own phone through the Expo Go app in minutes.

  2. 2
    Build with primitives

    Compose View, Text, and Pressable instead of div and button. StyleSheet handles styling.

  3. 3
    Ride Fast Refresh

    Save and watch the screen update instantly with state intact. This loop is the whole sell.

  4. 4
    Add device features

    Pull camera, location, or notifications from the Expo SDK — mostly hooks and promises.

  5. 5
    Ship a real build

    EAS Build compiles the store binaries in the cloud, so no Mac is required for iOS.

the code, explained

a component — note there is not a div in sight

1import { Text, Pressable } from 'react-native'
2export function Counter() {
3 const [n, setN] = useState(0)
state lives on the JS thread, like any React app
4 const tap = () => setN((v) => v + 1)
5 return <Pressable onPress={tap}>
compiles to a real native button, not a div
6 <Text>{n} taps</Text>
7 </Pressable>
8}

side by side

React on the web

  • renders to the DOM
  • div, button, CSS
  • every browser is the target
VS

React Native

  • renders to real native views
  • View, Text, Pressable
  • StyleSheet, not CSS
  • iOS and Android are the target
🪤 gotcha

npm install a package that contains native code and the app crashes — because nothing recompiled the native side. JS-only changes reload instantly; anything touching native code needs a fresh dev build (expo prebuild or EAS Build). Check that a library is Expo-compatible before adopting it.

quick answers

Is React Native just a webview?

No — that is Cordova or Ionic. React Native renders actual platform views; a webview only appears if you deliberately embed one.

Do I need a Mac for iOS?

Not for building: EAS Build compiles iOS in the cloud. You still want Xcode for deep native debugging.

React Native or Flutter?

Pick by team: React Native speaks JavaScript and reuses React skills; Flutter draws everything itself in Dart. Both can produce native-feeling apps.

quick hits about React Native

short answers · interviews, tips, trivia & hidden gems

🎤 interview

Native vs hybrid vs cross-platform?watch ↗

🎤 interview

React Native or Flutter?watch ↗

💎 deep

The instant feedback loopwatch ↗

🔧 useful

Debugging React Nativewatch ↗

🆕 update

The New Architecturewatch ↗