What is Nitro?
mainNitro is a framework for building high-performance native modules for JavaScript. It allows you to implement JavaScript objects in C++, Swift, or Kotlin instead of JS.
Key abstractions:
- Nitro Module: A library built with Nitro containing one or more Hybrid Objects.
- Hybrid Object: A native object implemented in C++, Swift, or Kotlin that can be accessed directly from JS.
- Nitrogen: An optional code-generator that creates native bindings from TypeScript interfaces, ensuring type safety between JS and native code.
Nitro is primarily designed for React Native but works in any environment using JSI (JavaScript Interface).