Lesson 1 of 9 · 26m
The React Native Runtime and the New Architecture
Build the correct mental model of the JavaScript runtime, Hermes, JSI, Fabric, and TurboModules before performance problems or integration bugs teach it to you painfully.
A team I joined had spent six months treating React Native as a browser with mobile widgets. They put JSON parsing on the render path, passed giant arrays through the bridge every frame, and blamed the framework when scrolling stuttered. The framework was not magic or broken; the team simply did not know where their code executed. That mental model is the first production skill.
React Native is several cooperating runtimes
Your JavaScript runs in Hermes, a JavaScript engine optimized for mobile startup and bytecode distribution. Native platform code runs in Kotlin/Java on Android and Swift/Objective-C on iOS. React Native connects those worlds through the New Architecture: JSI for direct native interop, Fabric for rendering, and TurboModules for native modules.
JavaScript app code
|
Hermes
| JSI / synchronous native interfaces
v
TurboModules ---- native APIs
Fabric renderer -> platform view hierarchyThe old asynchronous bridge still exists in some libraries and older codebases, but new projects should assume the New Architecture. As of modern React Native releases it is the default path, not an experiment you bolt on later.
JSI changes the performance conversation
The old bridge serialized data as JSON-ish messages and crossed asynchronously. JSI allows JavaScript and native code to call each other directly through C++ interfaces. That means high-frequency work can be fast, but it does not mean everything is free. Complex object conversion, thread hopping, and badly designed APIs still cost time.
A useful rule: cross the native boundary fewer times with better-designed payloads. Prefer one call carrying a compact result over dozens of calls carrying object graphs.
Hermes is not V8
Hermes is designed for startup and constrained devices. It is not Chrome. Some JavaScript behavior is present but slower, some platform APIs are absent, and libraries that assume Node or browser globals will break:
if (typeof localStorage === 'undefined') {
// This is not a browser. Use AsyncStorage, MMKV, SQLite, or your own persistence layer.
}Use Hermes bytecode in production through the normal React Native build. Source maps matter because production stack traces otherwise become symbol salad.
The renderer is native, but layout is cross-platform
Fabric computes React element trees into layout and mounts real platform views. A <View> becomes a native view; it is not a DOM node. Yoga computes flexbox-like layout. This gives you real platform controls, but it also means every nonstandard visual behavior eventually confronts platform differences.
What a senior engineer does first
When evaluating an existing app, inspect architecture before touching features:
npx react-native info
grep -R "NativeModules" node_modules src || true
ls android/app/src/main/java ios/*.xcodeproj 2>/dev/nullCheck the React Native version, whether the New Architecture is enabled, which libraries still use legacy assumptions, and whether the app depends on unmaintained native modules. Half of mobile modernization work is dependency archaeology.
Field notes
- A fast interaction on an emulator does not prove anything about a five-year-old Android device with a cold cache.
- Do not copy browser storage, browser networking, or browser lifecycle assumptions into Hermes.
- Fabric and TurboModules reduce bridge pain; they do not excuse careless data movement.
- If a library has not been updated for the New Architecture, treat it as a migration cost, not a black box.
Was this lesson helpful?