react-native
react-native copied to clipboard
0.75.4 - 0.79.2 Android 15-16 for StatusBarModule (EdgeToEdge)
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.79.2
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
[!WARNING] Missing reproducer: We could not detect a reproducible example in your issue report. Please provide either:
- If your bug is UI related: a Snack
- If your bug is build/upgrade related: a project using our Reproducer Template
- Otherwise send us a Pull Request with the RNTesterPlayground.js edited to reproduce your bug.
Checking...
I found this PR that add's Suppress(deprecation) over these functions: https://github.com/facebook/react-native/commit/ac51deeaf43723927d5000bee30d7f0b7a16575e.
It seems that they already are aware of this. But not sure when it's going to be picked up.
Same issue here
Same issue
Same issue, any solution?
just look this https://github.com/dotnet/maui/issues/26788#issuecomment-2573935062
Same issue
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:
1 action recommended Your app uses deprecated APIs or parameters for edge-to-edge One or more of the APIs 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:
android.view.Window.setDecorFitsSystemWindows android.view.Window.getStatusBarColor android.view.Window.setStatusBarColor android.view.Window.setNavigationBarColor android.view.Window.getNavigationBarColor
These start in the following places:
androidx.core.view.T$b.a com.facebook.react.modules.statusbar.StatusBarModule$b.runGuarded com.facebook.react.modules.statusbar.StatusBarModule.getTypedExportedConstants com.facebook.react.views.view.n.a com.google.android.material.internal.d.a com.swmansion.rnscreens.N$b.runGuarded com.swmansion.rnscreens.N.m com.swmansion.rnscreens.N.q To fix this, migrate away from these APIs or parameters.
Are there any fix for this ? seems like i get these error
This is probably used in libraries like react-native-navigation.
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
No crashes, Google Play offers it as a recommendation.
Do we have any solution here?
I also encountered the same problem:
"react-native": "0.78.2",
// These start in the following places:
com.facebook.react.modules.statusbar.StatusBarModule$b.runGuarded
com.facebook.react.modules.statusbar.StatusBarModule.getTypedExportedConstants
com.huawei.hms.activity.BridgeActivity.onCreate
com.swmansion.rnscreens.m.m
com.swmansion.rnscreens.m.q
com.unistyles.Platform.onSetNavigationBarColor$lambda$3$lambda$2
com.unistyles.Platform.onSetStatusBarColor$lambda$13$lambda$12
"react-native": "0.79.2",
The problem persists. I think it may be because of using library like "React-Native-Navigation".
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:
android.view.Window.setStatusBarColor
android.view.Window.setNavigationBarColor
android.view.Window.getStatusBarColor
android.view.Window.getNavigationBarColor
These start in the following places:
A5.f.g
com.facebook.react.modules.statusbar.StatusBarModule$b.runGuarded
com.facebook.react.modules.statusbar.StatusBarModule.getTypedExportedConstants
com.facebook.react.views.view.o.e
com.google.android.material.internal.c.a
com.swmansion.rnscreens.c0$b.runGuarded
com.swmansion.rnscreens.c0.m
com.swmansion.rnscreens.c0.q
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.
Yes i m on react-native-screens@latest
Please 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.setStatusBarColor
'var statusBarColor: Int?' is deprecated. For apps targeting SDK 35 or above this prop has no effect because edge-to-edge is enabled by default and the status bar is always translucent.
w: ~/java/com/swmansion/rnscreens/ScreenViewManager.kt:220:14 'var isStatusBarTranslucent: Boolean?' is deprecated. For apps targeting SDK 35 or above this prop has no effect because edge-to-edge is enabled by default and the status bar is always translucent.
@Deprecated(
"For apps targeting SDK 35 or above this prop has no effect. " +
"Since the edge-to-edge is enabled by default the color is always translucent.",
)
@ReactProp(name = "statusBarColor", customType = "Color")
override fun setStatusBarColor(
view: Screen,
statusBarColor: Int?,
) {
view.statusBarColor = statusBarColor
}
w: ~/java/com/swmansion/rnscreens/ScreenViewManager.kt:237:14 'var navigationBarColor: Int?' is deprecated. For all apps targeting Android SDK 35 or above edge-to-edge is enabled by default.
w: ~/java/com/swmansion/rnscreens/ScreenViewManager.kt:246:14 'var isNavigationBarTranslucent: Boolean?' is deprecated. For all apps targeting Android SDK 35 or above edge-to-edge is enabled by default.
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
# Use this property to enable edge-to-edge display support.
# This allows your app to draw behind system bars for an immersive UI.
# Note: Only works with ReactActivity and should not be used with custom Activity.
edgeToEdgeEnabled=false
https://react-native-community.github.io/upgrade-helper/?from=0.80.1&to=0.81.0-rc.1
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
# Use this property to enable edge-to-edge display support. # This allows your app to draw behind system bars for an immersive UI. # Note: Only works with ReactActivity and should not be used with custom Activity. edgeToEdgeEnabled=falsehttps://react-native-community.github.io/upgrade-helper/?from=0.80.1&to=0.81.0-rc.1
Not ready for 2yo OS version. Nice.
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
Use this property to enable edge-to-edge display support.
This allows your app to draw behind system bars for an immersive UI.
Note: Only works with ReactActivity and should not be used with custom Activity.
edgeToEdgeEnabled=false https://react-native-community.github.io/upgrade-helper/?from=0.80.1&to=0.81.0-rc.1
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?