Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

Support lazy/turbo packages

未關閉
#356 3 則留言 6 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 2 天內回覆

還沒有人認領這個 Issue。

評估

難度
5/5
預估耗時
一週以上
新手友好度
30/100
Issue 類型
功能
描述清晰度
需要釐清
活躍度
停滯
技術堆疊
java, react-native, typescript
領域
mobile, tooling

研究方向

先閱讀連結的文章,以及會產生 MainApplication.java 的 react-native 設定實作。追蹤目前原生模組的包裝方式,接著判斷一個 TurboReactPackage 和模組註解應如何維持向後相容性。完成的條件是:產生的 Android 專案使用 lazy/turbo package,且不會破壞缺少註解的模組。

由索引模型根據 Issue 內容生成。

描述

feature request no-stale-bot

Describe the Feature

As described by Ram in his article, Android can greatly benefit from using LazyReactPackage or TurboReactPackage to decrease startup time.

It requires adding annotations to native modules themselves but is also backwards compatible in the sense that if annotation is missing, the module still gets loaded, only not lazily.

From performance perspective, it's also better not to wrap every module in its own package - instead of nesting them, we can only have one package to wrap all native modules.

Possible Implementations

As part of the work on react-native config, we could update the MainApplication.java changes to include only one TurboReactPackage with all native modules in it.

主要語言
TypeScript
星號
2.9k
分支
951
PR 合併指標
30 天內沒有已合併 PR

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

react-native-community/cli 的其他 Issue

查看 react-native-community/cli 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。