Your app uses deprecated APIs or parameters for edge-to-edge #2632
Description
Description
Using latest version "react-native-screens": "^4.5.0",
when submitting app to play store getting this recommendation not able to publish app on play store .
1 action recommended
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.getStatusBarColor
android.view.Window.setStatusBarColor
android.view.Window.setDecorFitsSystemWindows
androidx.core.view.WindowCompat.setDecorFitsSystemWindows
android.view.Window.setNavigationBarColor
android.view.Window.getNavigationBarColor
LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES
LAYOUT_IN_DISPLAY_CUTOUT_MODE_DEFAULT
These start in the following places:
com.facebook.react.modules.statusbar.StatusBarModule$setColor$1.runGuarded
com.facebook.react.modules.statusbar.StatusBarModule.getTypedExportedConstants
com.facebook.react.views.view.WindowUtilKt.statusBarHide
com.facebook.react.views.view.WindowUtilKt.statusBarShow
com.google.android.material.bottomsheet.BottomSheetDialog.onCreate
com.google.android.material.internal.EdgeToEdgeUtils.applyEdgeToEdge
com.swmansion.rnscreens.ScreenWindowTraits.setColor$react_native_screens_release
com.swmansion.rnscreens.ScreenWindowTraits.setNavigationBarColor$react_native_screens_release
com.swmansion.rnscreens.ScreenWindowTraits.setNavigationBarTranslucent$react_native_screens_release
androidx.activity.EdgeToEdgeApi28.adjustLayoutInDisplayCutoutMode
Please check this many others are facing this issue and not able to publish new version on playstore.
Steps to reproduce
need to publish app on play store .
link that other users are also facing this issue : facebook/react-native#48256
Snack or a link to a repository
https://github.com/gauravSharma2009/guidezmobile/tree/android
Screens version
4.5.0
React Native version
0.76.5
Platforms
Android
JavaScript runtime
None
Workflow
None
Architecture
None
Build type
None
Device
None
Device model
No response
Acknowledgements
Yes