Overview of Node-API Modules for React Native
nextThis project enables developers to build native modules for React Native using the standard Node-API. This allows for a "write once, run anywhere" approach where native modules written for Node.js can be used within React Native applications.
Key Concepts
- Node-API Compatibility: The library leverages a specific version of the Hermes engine (from the
static_hbranch) that includes a first-party Node-API implementation. - Platform Support: Currently supports iOS and Android. Future support is planned for Windows, macOS, visionOS, and other platforms.
- Host Package: The
react-native-node-apipackage acts as a host that manages Hermes configuration, discovers Node-API binaries, and provides a TurboModule to load them.