Skip to content

enableEdgeToEdge function for Android 15 and above?Β #7946

@ertugruldogan

Description

@ertugruldogan

Warnings when targeting Android 15.
To fix the problem, stop using these APIs or parameters.
https://developer.android.com/about/versions/15/behavior-changes-15?hl=tr#edge-to-edge

End-to-end display may not be shown to all users

All apps targeting SDK 35 will be displayed edge-to-edge by default starting with Android 15. Apps targeting SDK 35 must use attachments to display properly on Android 15 and above. We recommend that you take the time to review this issue and perform end-to-end screen testing of your app and make any necessary updates to your code. Alternatively, for backward compatibility, call enableEdgeToEdge() for Kotlin or EdgeToEdge.enable() for Java.


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

Anyone have any ideas on this?


react-native: 075.x - 0.76x - 0.77x
react-native-navigation: 7.40.3
java: 17
node: 22.5.1
gradle: 8.10.2
buildToolsVersion = "35.0.0"
minSdkVersion = 24
compileSdkVersion = 35
targetSdkVersion = 35
ndkVersion = "27.2.12479018"
kotlinVersion = "2.0.21"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions