UNPKG

nitro-codegen

Version:

The code-generator for react-native-nitro-modules.

27 lines (18 loc) 939 B
<a href="https://margelo.com"> <picture> <source media="(prefers-color-scheme: dark)" srcset="../../docs/static/img/banner-nitrogen-dark.png" /> <source media="(prefers-color-scheme: light)" srcset="../../docs/static/img/banner-nitrogen-light.png" /> <img alt="Nitrogen" src="../../docs/static/img/banner-nitrogen-light.png" /> </picture> </a> <br /> **Nitrogen** is a code-generator that takes TypeScript interfaces and generates C++, Swift and Kotlin code and native bindings built on top of the [**react-native-nitro-modules**](../react-native-nitro-modules/) core APIs. ## Installation Install [nitrogen](https://npmjs.org/nitrogen) as a `devDependency` in your react-native library: ```sh npm i nitro-codegen -D ``` > [!WARNING] > Nitrogen is currently named `nitro-codegen` instead of `nitrogen` on npm. ## Usage See the [Nitrogen documentation](https://nitro.margelo.com/docs/nitrogen) for more information.