`@react-native/assets` ships Flow instead of JS
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- C++
- Sterne
- 127k
- Forks
- 25.3k
- Ø Merge
- 1 T. 23 Std.
- Gemergte PRs (30 T.)
- 4
Beschreibung
Description
The assets package is shipping flow JS directly, making it break when importing on Next.js. It should build prior to publishing and remove types.
See: https://github.com/facebook/react-native/blob/main/packages/assets/registry.js
Let me know if I should PR, though I know TypeScript and not flow. Could also migrate it.
React Native Version
0.71
Output of npx react-native info
N/A
Steps to reproduce
See https://github.com/facebook/react-native/blob/main/packages/assets/registry.js
Snack, code example, screenshot, or link to a repository
If you need a repro, you can try importing @react-native/assets in Next.js. It's pretty self-explanatory though.
Thanks!
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne mit packages/assets/registry.js und reproduziere den Import von @react-native/assets aus Next.js. Verfolge anschließend die Veröffentlichungs- und Build-Konfiguration des assets-Pakets und überprüfe, dass der veröffentlichte Einstiegspunkt kompiliertes JavaScript ohne Flow-Typen ist; fertig, wenn der Next.js-Import erfolgreich ist.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- javascript, next.js, react-native
- Bereich
- build-system, mobile
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100