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
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 secondnative components
The primitives you render. They are thin wrappers over real platform views, not HTML.
<View> = UIView on iOSFast Refresh
The edit-and-see loop: saves push into the running app in under a second, keeping component state.
tweak padding 50 times fastnative module
A bridge to platform code — camera, bluetooth, payments — when pure JS cannot reach it.
expo-camera ships onehow it works
- 1Start with Expo
npx create-expo-app gives you a project that runs on your own phone through the Expo Go app in minutes.
- 2Build with primitives
Compose View, Text, and Pressable instead of div and button. StyleSheet handles styling.
- 3Ride Fast Refresh
Save and watch the screen update instantly with state intact. This loop is the whole sell.
- 4Add device features
Pull camera, location, or notifications from the Expo SDK — mostly hooks and promises.
- 5Ship 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
side by side
React on the web
- renders to the DOM
- div, button, CSS
- every browser is the target
React Native
- renders to real native views
- View, Text, Pressable
- StyleSheet, not CSS
- iOS and Android are the target
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