Support lazy/turbo packages
維護者通常 2 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 5/5
- 預估耗時
- 一週以上
- 新手友好度
- 30/100
- Issue 類型
- 功能
- 描述清晰度
- 需要釐清
- 活躍度
- 停滯
- 技術堆疊
- java, react-native, typescript
研究方向
先閱讀連結的文章,以及會產生 MainApplication.java 的 react-native 設定實作。追蹤目前原生模組的包裝方式,接著判斷一個 TurboReactPackage 和模組註解應如何維持向後相容性。完成的條件是:產生的 Android 專案使用 lazy/turbo package,且不會破壞缺少註解的模組。
由索引模型根據 Issue 內容生成。
描述
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
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
react-native-community/cli 的其他 Issue
-
run-ios --udid <physical device> throws "No simulator available" because the fallback simulator is resolved eagerly可能已有人在做 @huytdps13400 於 52 天前認領。 未關閉bug report
難度 2/5 1-3 小時 新手友好度 84/100
react-native-community/cli#2826 ·
維護者通常 2 天內回覆
-
`project.ios.automaticPodsInstallation` default of `true` never applies unless `project.ios` is explicitly declared in `react-native.config.js`可能已有人在做 @huytdps13400 於 52 天前認領。 未關閉bug report
難度 2/5 1-3 小時 新手友好度 78/100
react-native-community/cli#2825 ·
維護者通常 2 天內回覆
-
run-ios: "Unable to boot device in current state: Booted" alert when the simulator is already booted可能已有人在做 @bryandent 於 96 天前認領。 未關閉stale
難度 2/5 1-3 小時 新手友好度 75/100
react-native-community/cli#2820 · 1 則留言 ·
維護者通常 2 天內回覆
-
run-ios --buildFolder installs the app from the default DerivedData instead of the build folder可能已有人在做 @lovisschmidt 於 12 天前認領。 未關閉
難度 3/5 1-2 天 新手友好度 55/100
react-native-community/cli#2869 ·
維護者通常 2 天內回覆
-
run-ios on Xcode 27: DeviceHub opens no window when the simulator is shut down可能已有人在做 @rakodev 於 13 天前認領。 未關閉
難度 3/5 1-2 天 新手友好度 25/100
react-native-community/cli#2866 · 2 則留言 ·
維護者通常 2 天內回覆
查看 react-native-community/cli 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 62/100
umami-software/umami#4637 ·
維護者通常 3 天內回覆
-
Hotkeys fire when pressed with the Ctrl key, so browser shortcuts also trigger player actions可能已有人在做 @RaphaelFakhri 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 75/100
muxinc/media-chrome#1332 ·
維護者通常 5 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
polarsource/polar#15580 ·
維護者通常 1 天內回覆
-
accepted bug via-triage
難度 2/5 1-3 小時 新手友好度 69/100
pingdotgg/t3code#20931 · 1 則留言 ·
維護者通常 1 天內回覆
-
bug/1-unconfirmed kind/bug
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆