Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

Remove the requirement for a `react-native-node-api-module` file in prebuilds

Offen
#53 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
45/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
react-native, typescript
Bereich
build-system, mobile

Rechercherichtung

Lies packages/host/src/node/prebuilds/apple.ts und packages/host/src/node/prebuilds/android.ts sowie das verknüpfte TODO und Issue #42. Lege fest, welches Signal zur automatischen Verknüpfung auf beiden Plattformen verwendet werden soll, aktualisiere die beiden Pfade zum Schreiben der Marker konsistent und überprüfe, dass prebuilds nicht mehr von der entfernten Anforderung abhängen.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

good first issue Linking 🔗 question

We currently require that authors of Node-API modules place a "magic" react-native-node-api-module file to signal the prebuild is intended for auto-linking.
When #42 merge we could probably lift this requirement and consider any .apple.node or .android.node directory enabled for auto-linking.


A third option marked in the source

There is a TODO in the Apple prebuild path proposing a different resolution to the same question — moving the marker into the framework's Info.plist rather than dropping it:

https://github.com/callstackincubator/react-native-node-api/blob/29a527d87fa8cb965b0048b1b4c1cff2b0eab281/packages/host/src/node/prebuilds/apple.ts#L261-L268

Worth settling here rather than in two places, since the options are mutually exclusive. Note the Apple and Android sides differ in what is available: an XCFramework has an Info.plist to carry a custom key, while the Android output is a plain jniLibs directory with nowhere equivalent to put one — so "move it into Info.plist" would leave the two platforms signalling auto-linking in different ways, whereas removing the requirement entirely (this issue as filed) keeps them symmetric.

The marker file is written in two places, both of which would change either way:

Vorherrschende Sprache
TypeScript
Sterne
188
Forks
10
Ø Merge
2 T. 17 Std.
Gemergte PRs (30 T.)
3

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus callstackincubator/react-native-node-api

Alle Issues in callstackincubator/react-native-node-api

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.