0.75.4 - 0.80.1 Android 15-16 for StatusBarModule (EdgeToEdge)
还没有人认领这个 Issue。
- 主要语言
- C++
- 星标
- 127k
- 派生
- 25.3k
- 平均合并
- 1 天 23 小时
- 30 天内合并 PR
- 4
描述
Description
Your app uses deprecated APIs or parameters for end-to-end display
One or more APIs you use or parameters you set for end-to-end screen and window display have been discontinued in Android 15. Your application uses the following deprecated APIs or parameters:
android.view.Window.getStatusBarColor
android.view.Window.setStatusBarColor
These start from:
com.facebook.react.modules.statusbar.StatusBarModule$setColor$1.runGuarded
com.facebook.react.modules.statusbar.StatusBarModule.getTypedExportedConstants
https://developer.android.com/about/versions/15/behavior-changes-15?hl=tr#edge-to-edge
React Native Version
0.75.4, - 0.80.1
Affected Platforms
Runtime - Android
Output of npx react-native info
System:
OS: Windows 10 10.0.19045
CPU: (8) x64 Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
Memory: 15.45 GB / 31.96 GB
Binaries:
Node:
version: 22.9.0
path: C:\Program Files\nodejs\node.EXE
Yarn: Not Found
npm:
version: 10.9.1
path: C:\Program Files\nodejs\npm.CMD
Watchman: Not Found
SDKs:
Android SDK:
API Levels:
- "31"
- "35"
Build Tools:
- 34.0.0
- 35.0.0
System Images:
- android-24 | Google Play Intel x86 Atom
- android-26 | Google APIs Intel x86 Atom
- android-27 | Intel x86 Atom
- android-27 | Google APIs Intel x86 Atom
- android-27 | Google Play Intel x86 Atom
- android-28 | Google Play Intel x86 Atom
- android-34 | Google Play Intel x86_64 Atom
- android-35 | Google Play Intel x86_64 Atom
- android-35 | Pre-Release 16 KB Page Size Google Play ARM Intel x86_64
Atom
Android NDK: Not Found
Windows SDK: Not Found
IDEs:
Android Studio: AI-242.23339.11.2421.12700392
Visual Studio: Not Found
Languages:
Java: 17.0.9
Ruby: Not Found
npmPackages:
"@react-native-community/cli": Not Found
react:
installed: 18.3.1
wanted: 18.3.1
react-native:
installed: 0.75.4
wanted: 0.75.4
react-native-windows: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: false
iOS:
hermesEnabled: Not found
newArchEnabled: Not found
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 com.facebook.react.modules.statusbar.StatusBarModule 开始,尤其是 setColor 和 getTypedExportedConstants,然后阅读链接的 Android 15 edge-to-edge 行为变更。确定针对所报告状态栏 API 的受支持处理方式,并在 Android 15 或 16 上验证已解决弃用 API 警告,同时不破坏状态栏行为。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- android, react-native
- 领域
- mobile
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 冷清
- 描述清晰度
- 需要澄清
- 新手友好度
- 42/100