Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Your app uses deprecated APIs or parameters for edge-to-edge #2632

Open
gauravSharma2009 opened this issue Jan 17, 2025 · 3 comments
Open

Your app uses deprecated APIs or parameters for edge-to-edge #2632

gauravSharma2009 opened this issue Jan 17, 2025 · 3 comments
Labels
Platform: Android This issue is specific to Android Repro provided A reproduction with a snack or repo is provided

Comments

@gauravSharma2009
Copy link

gauravSharma2009 commented Jan 17, 2025

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

@github-actions github-actions bot added Platform: Android This issue is specific to Android Repro provided A reproduction with a snack or repo is provided labels Jan 17, 2025
@kkafar
Copy link
Member

kkafar commented Jan 17, 2025

Thanks for the report. We'll look into it

@kkafar
Copy link
Member

kkafar commented Jan 20, 2025

@gauravSharma2009 is this only a warning or is it the reason for rejection in play store?

Edit 1: I overlooked the link. No need for clarification.

Edit 2: Not true though. All other reports of this issue I see, state that this is only a warning, e.g. dotnet/maui#26788 (comment), not a reason for rejection. Therefore the initial question remains valid: is this only a warning or is it the reason for rejection in play store?

For my future reference:

  1. Issue on RN 0.75.4 - Android 15 for StatusBarModule (EdgeToEdge) facebook/react-native#48256
  2. Issue on Flutter Deprecated APIs use on Android 15 flutter/flutter#160328
  3. Issue on dotnet Your app uses deprecated APIs or parameters for edge-to-edge (Android 15) dotnet/maui#26788
  4. Temporary solution on RN side: Add suppression for deprecated setters and getters facebook/react-native#44676

@kkafar
Copy link
Member

kkafar commented Jan 20, 2025

The roadmap for this issue is as follows:

  1. We might apply the temporary solution from RN (linked above ☝)
  2. At the same time I've marked all the responsible props as deprecated in feat(Android): deprecate series of status/navigation bar related props #2638 and they will be removed in future major (at least few months from now but this timeline is wild guess, no concrete plans exist yet)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform: Android This issue is specific to Android Repro provided A reproduction with a snack or repo is provided
Projects
None yet
Development

No branches or pull requests

2 participants