Rousavy developed Nitro while building React Native Filament, after finding manual JSI bindings too verbose and difficult to manage safely. Nitro aims to handle thread scheduling and memory management while giving library developers more control than traditional native modules or TurboModules.
Superfast Nitro Modules
Speaker
Marc Rousavy, a React Native library developer, joins host Jakub on Callstack’s React Universe On Air to explain Nitro Modules, the native module framework he built for more flexible and efficient React Native libraries.
Nitro Modules are libraries built around native object instances, called Hybrid Objects, which expose methods and properties to JavaScript. Rousavy uses Filament models and camera frames as examples of objects that can hold state and be passed between JavaScript and native code. Library developers define TypeScript interfaces and use Nitrogen to generate Swift and Kotlin interfaces; app users do not need to run the generator.
Rousavy says Nitro’s object-based APIs and Swift-C++ interoperability distinguish it from TurboModules and Expo Modules. In a narrow iOS benchmark that added two numbers, Nitro was 15 times faster than TurboModules and 59 times faster than Expo Modules; he had not yet benchmarked Android. He recommends considering migration when existing modules hit architectural limits or make frequent native calls, while simple modules may gain more from Nitro’s API than from a noticeable speedup.
Hybrid Objects can keep large results on the native side and expose data lazily, so JavaScript converts only what it uses. For example, a native result could filter 10,000 users and convert only the 20 who live in Vienna. A camera can also pass an image instance directly to an image component, avoiding an unnecessary file write and read.
Rousavy described the core Nitro library as stable and outlined work on a starter template, simpler linking, and first-class support for React Native view components. He said React Native Filament already used Nitro, while VisionCamera, MMKV, WebGPU, Unistyles, and React Native Video were among the libraries using or considering it.
Takeaways
- Start a native library inside the app that needs it, then extract it once you understand the use case and can decouple app-specific code.
- Use Nitro when a module needs native object instances, properties, or capabilities that are awkward to build with TurboModules or Expo Modules.
- Treat the reported 15x and 59x speedups as results from one narrow iOS function benchmark, not as general app performance gains.
- Keep large data and media native when possible, and expose or convert only the parts JavaScript actually needs.
- For workloads with many native calls per frame, such as rendering at 120 FPS, reducing bridge overhead may matter more than for occasional simple calls.
Mentioned in this talk
Search inside this talk
What was claimed 12
- builtMarc Rousavy built
Nitro
“I made it”
0:19inWhy Nitro Is More Than a Faster BridgeYouTube Verified5 sources· Talk
- builtMarc Rousavy built VisionCamera
“I built React Native Vision Camera”
0:22inFrom teenage programmer to React Native mavenYouTube Verified5 sources· Talk
- integrates with
“it goes directly through the Swift interop”
4:13inNitro Modules & The Road to React Native 1.0YouTube Verified3 sources· Talk
- uses
“They’re all based on JSI nowadays.”
5:05inNitro Modules & The Road to React Native 1.0YouTube Verified2 sources· Talk
- built
“The code generator for Nitro is called Nitrogen.”
14:05inThe Past, Present & Future of NitroYouTube Verified2 sources· Talk
- feature
Nitro: Instance-based HybridObjects with methods and properties
“Each Hybrid Object has methods and properties that you can get or set.”
YouTube Unverified1 source· Talk
- integrates with
“It also supports Swift and Kotlin.”
16:39inThe Past, Present & Future of NitroYouTube Verified2 sources· Talk
- metric
Nitro: 15 times faster than Turbo Modules and 59 times faster than Expo Modules in a simple iOS add-numbers benchmark
“Nitro was 15 times faster than Turbo Modules, and 59 times faster than Expo Modules in this specific benchmark.”
YouTube Unverified1 source· Talk









