Description
Nitro Modules is a toolkit for writing fast, type-safe native modules for React Native, with statically compiled bindings to JSI, the JavaScript interface React Native uses to talk to native code. You write a module once in TypeScript, and the code generator nitrogen produces the native bindings for C++, Swift and Kotlin, so the conversions between JavaScript and native types are generated ahead of time rather than looked up at runtime. The project has three parts: nitro-core, the shared native runtime and JavaScript API, nitrogen, the code generator, and react-native-nitro-modules, the React Native package that handles installation, views, worklets and the native build. Modules can be written in C++ for code that runs on both platforms, or in Swift and Kotlin for iOS and Android, and Swift modules bridge directly to C++ without Objective-C message sends. Native view components can also be built with Nitro. The package is installed from npm as react-native-nitro-modules. The README includes an example declaration in TypeScript and matching implementations, a documentation list and a test module that shows the test specs.…
Highlights
- Statically compiled bindings to JSI
- Native modules in C++, Swift or Kotlin
- Code generator nitrogen for bindings
- Native views and worklets support
- MIT licensed
Ratings & Reviews
No ratings yet
Be the first to rate Nitro Modules.
People also visit

react-native-screens
Native navigation primitives that back React Navigation's native stack
Nitro Modules FAQ
What is Nitro Modules?
A toolkit for writing fast, type-safe native modules for React Native with statically compiled JSI bindings.
Is it free?
Yes. It is MIT licensed and the source is on GitHub.
How do I install it?
Install react-native-nitro-modules from npm, as the README describes.
Which languages can I write native code in?
C++ for cross-platform code, and Swift or Kotlin for platform-specific code.
What is nitrogen?
The code generator that produces the C++, Swift and Kotlin bindings from your TypeScript spec.
Can it build native views?
Yes. The react-native-nitro-modules package covers views as well as modules.
What are the best Nitro Modules alternatives?
Popular alternatives to Nitro Modules include react-native-macos, react-native-screens and react-native-localization. See all Nitro Modules alternatives
















