Nitro is a React Native native-module system for building very fast C++, Swift, and Kotlin modules with statically compiled bindings to JSI. It is designed to reduce runtime overhead by generating type converters ahead of time instead of relying on dynamic lookups. The project consists of the core react-native-nitro-modules library and the optional nitrogen code generator for module authors. Developers define interfaces in TypeScript and implement the native behavior in C++, Swift, Kotlin, or Java. Nitro supports cross-platform C++ modules as well as platform-native iOS and Android implementations. It is useful for React Native teams that need high-performance native functionality, strongly typed bindings, and lower bridge overhead.
Features
- React Native native-module system
- Static JSI binding generation
- TypeScript interface declarations
- C++, Swift, Kotlin, and Java support
- Optional nitrogen code generator
- Cross-platform hybrid object model