Support packages shipping multi-config prebuilds

Open
#283 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
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
cmake, react-native, typescript

Research direction

Start by tracing how cmake-rn produces the configuration-specific prebuilt paths and how react-native-node-api remaps library names during linking. Define the preferred configuration-selection behavior, including whether callers can request Debug or another build, and document what happens when a requested prebuilt is unavailable.

Written by the indexing model from the issue text.

Description

enhancement

With default options

  • cmake-rn outputs into ./build/{configuration}/my-lib.apple.node and ./build/{configuration}/my-lib.android.node.
  • react-native-node-api linking doesn't include the library configuration in the remapped name.

In most cases, the app developer is interested in the "MinSizeRel", "RelWithDebInfo" or "Release", but it's not necessarily clear to me, which would be a preferred default.
In rare cases, the app developer might also be interested in running the "Debug" prebuilt (if available).

Ideally, we would have a way for "react-native-node-api" to pick the right prebuilt based on some configuration (passed to react-native-node-api --link?).

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.