Repository navigation
0.75.4 - 0.80.1 Android 15-16 for StatusBarModule (EdgeToEdge) #48256
Copy link
Copy link
Open
Labels
Component: StatusBarNeeds: AttentionIssues where the author has responded to feedback.Issues where the author has responded to feedback.Needs: ReproThis issue could be improved with a clear list of steps to reproduce the issue.This issue could be improved with a clear list of steps to reproduce the issue.Platform: AndroidAndroid applications.Android applications.
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Component: StatusBarNeeds: AttentionIssues where the author has responded to feedback.Issues where the author has responded to feedback.Needs: ReproThis issue could be improved with a clear list of steps to reproduce the issue.This issue could be improved with a clear list of steps to reproduce the issue.Platform: AndroidAndroid applications.Android applications.

Activity
malinjr07 commentedon Jan 25, 2025
No Fix, Patch or Solution till now. I published my React Native CLI App on Google Play Store and I got the exact same Production Level Actionable Task:
jsuhangita commentedon Feb 14, 2025
Are there any fix for this ? seems like i get these error
ertugruldogan commentedon Feb 14, 2025
This is probably used in libraries like react-native-navigation.
gagtic commentedon Feb 27, 2025
Is this problem breaking any apps? causing any crashes? I have an app in review, about to go into production. And I love having a job 🥶
I can't upgrade react-native version right now, due to some deps
ertugruldogan commentedon Feb 27, 2025
No crashes, Google Play offers it as a recommendation.
HirenAVyas commentedon Apr 23, 2025
Do we have any solution here?
astrahov commentedon May 23, 2025
I also encountered the same problem:
ertugruldogan commentedon May 23, 2025
"react-native": "0.79.2",
The problem persists. I think it may be because of using library like "React-Native-Navigation".
[-]0.75.4 - Android 15 for StatusBarModule (EdgeToEdge)[/-][+]0.75.4:0.79.2 Android 15-16 for StatusBarModule (EdgeToEdge)[/+][-]0.75.4:0.79.2 Android 15-16 for StatusBarModule (EdgeToEdge)[/-][+]0.75.4 - 0.79.2 Android 15-16 for StatusBarModule (EdgeToEdge)[/+]varaprasad31 commentedon Jul 7, 2025
hi,
i have the same issue.
any help / guidance appreciated.
submitted an app for review .
app used expo react native and on latest versions.
expo 53.0.17 and React native 0.79.4.
to the best of knowledge , whatever is recommended in expo is done.
for e..g.
edge to edge in enabled,
react native edge to edge is used.
specifically ,if any one who has the app published already, how these messages are effecting the status of the app , pls share your experience?
or is these messages only advisory / warning messages that does not effect the review / current status , if already published.
got the following actions recommended.
1 )Your app uses deprecated APIs or parameters for edge-to-edge
One or more of the APIs that you use or parameters that you set for edge-to-edge and window display have been deprecated in Android 15. Your app uses the following deprecated APIs or parameters:
These start in the following places:
To fix this, migrate away from these APIs or parameters.
2 ) Edge-to-edge may not display for all users
From Android 15, apps targeting SDK 35 will display edge-to-edge by default. Apps targeting SDK 35 should handle insets to make sure that their app displays correctly on Android 15 and later. Investigate this issue and allow time to test edge-to-edge and make the required updates. Alternatively, call enableEdgeToEdge() for Kotlin or EdgeToEdge.enable() for Java for backward compatibility.
[-]0.75.4 - 0.79.2 Android 15-16 for StatusBarModule (EdgeToEdge)[/-][+]0.75.4 - 0.80.1 Android 15-16 for StatusBarModule (EdgeToEdge)[/+]devhik0 commentedon Jul 19, 2025
Yes i m on
react-native-screens@latestPlease offer a solution to this issue to continue building our apps
Also here is the logs for the ones who are wondering why and where these errors coming
Google:
android.View.Window.setStatusBarColorertugruldogan commentedon Jul 19, 2025
React-Native: Wait for the 0.81.x version because both the third-party libraries and react-native are not fully ready, so it will become clear after the 0.81.x version.
/android/gradle.properties
https://react-native-community.github.io/upgrade-helper/?from=0.80.1&to=0.81.0-rc.1
devhik0 commentedon Jul 19, 2025
Not ready for 2yo OS version. Nice.
airimiaporsche commentedon Nov 24, 2025
I upgraded my app to 0.81.5. And I am still receiving these warnings from Playstore
Does somebody have any update or fix for these?
ramanguptazelhus commentedon Apr 16, 2026
Same issue, any solution?
react-native-bot commentedon Oct 13, 2026
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.
sidhu commentedon Oct 19, 2026
Still present on React Native 0.86.3 (Expo SDK 57). We scanned our release build's bytecode, resolved through R8's mapping, for the window APIs that Play Console's "Your app uses deprecated APIs or parameters for edge-to-edge" warning lists. These React Native call sites remain:
StatusBarModule.getTypedExportedConstants→Window.getStatusBarColorStatusBarModule.setColor→Window.getStatusBarColor/Window.setStatusBarColorWindowUtilKt.enableEdgeToEdge→Window.setStatusBarColor(with no version check, so it also runs on API 35+) andWindow.setNavigationBarColorWindowUtilKt.statusBarHide/statusBarShow→WindowManager.LayoutParams.layoutInDisplayCutoutMode(skipped when edge-to-edge is on, but still in the bytecode)For comparison, Material Components now wraps its equivalent calls in
SDK_INT < VANILLA_ICE_CREAMchecks (material-components-android c2051db2, "Avoid calling deprecated edge-to-edge APIs on 35+"), and expo-navigation-bar does the same below API 29. Something similar here would at least stop these running on API 35+.chocky335 commentedon Oct 19, 2026
Still relevant on main. The only remaining call sites are in
WindowUtil.kt, inenableEdgeToEdge: onesetStatusBarColorand twosetNavigationBarColor. I checked by scanning the RNTester release APK with dexdump.StatusBarModule.setColorwent away in 0.87 with #57392, so the 0.86.3 list above is out of date.On a window where Android 15+ enforces edge-to-edge,
PhoneWindow.setStatusBarColorreturns early, so that call does nothing there.setNavigationBarColorstill sets the color of the 3-button navigation bar scrim. Devices below Android 15 need both calls, so a runtime guard keeps the references in the dex and the Play Console scan keeps finding them.I have a small change ready that skips
setStatusBarColoron enforced windows, with Robolectric tests and no visual change on a Pixel 8 Pro and a Mi 11 Lite. Before I open it: is a runtime-only cleanup welcome here, or do you see the remaining warning as something to document rather than to change in code?