Native Code for React Natives
Native code in React Native means the Swift, Kotlin or Java and C++ layers beneath the JavaScript app, along with the New Architecture. The New Architecture replaces the old asynchronous bridge with JSI, TurboModules and Fabric, letting JavaScript call native code directly. Developers touch this layer to write custom modules or views.
Stage: Device Features · Part of the React Native roadmap · Last reviewed 19 November 2026
What to learn in Native Code
- Explain how JSI differs from the old asynchronous bridge
- Describe what TurboModules and Fabric each replace
- Write a simple native module that exposes one method to JavaScript
- Define a typed module spec that Codegen can turn into native interfaces
- Decide when a community library is enough and when custom native code is justified
Native Code interview questions
What problem did the New Architecture solve?
The old bridge serialised messages to JSON and passed them asynchronously between JavaScript and native, adding overhead and making synchronous calls impossible. JSI gives JavaScript direct references to native objects, and TurboModules and Fabric build on it for faster, typed module and rendering paths.
What is Codegen in React Native?
Codegen reads typed specs, written in TypeScript or Flow, for native modules and components. It generates the native interface code for iOS and Android at build time, so both sides agree on method names and types, and mismatches are caught early rather than at runtime.
Where Native Code fits in the React Native roadmap
Native Code belongs to the Device Features stage (intermediate level), which takes about 19 hours. Native power.
Other units in this stage
Back to the full React Native roadmap