Support in-app Node-API addons

Open
#228 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
node.js, react-native, typescript
Domain
api, mobile

Research direction

Start by reviewing PR-104 and the example app, then inspect how the app package is scanned for dependency prebuilds. Determine which Node-API addon use cases are supported and implement the addon example in the app source. Done means the example exercises the APIs and the use case is documented.

Written by the indexing model from the issue text.

Description

documentation Host 🏡

We're mainly testing Node-API addons being build and published as separate shared libraries in library packages and it would be good to have explicit support for implementing and publishing Node-API addons as part of the app source-code as well.

This could be a few different things:

  • As a shared library built as part of building your app, i.e. a multi-arch prebuild included in your app directory. We do support this (as the app package is scanned when we're scanning dependencies for prebuilds), but we're not actively testing it - which we should.
  • An addon built as part of your app source-code, this should technically be possible, but we're lacking the merge of PR-104 adding support for the (soft deprecated) napi_module_register function, which would be the only way to register such a module / addon (as far as I know at least).

A large part of this effort would be implementing an addon in the example app to show the use of the APIs as well as documenting the use-case.

Dominant language
TypeScript
Stars
206
Forks
12
Avg merge
4h 8m
Merged PRs (30d)
2

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from callstackincubator/react-native-node-api

All issues in callstackincubator/react-native-node-api

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.