Skip to content

[0.80] handle onBackPressed() deprecation with targetSdk 36 (1/2) - ReactActivity #928

@alanleedev

Description

@alanleedev

Target Branch(es)

0.80

Link to commit or PR to be picked

facebook/react-native#51096

Description

When developers starts targeting Sdk 36 (Android 16), predictive back is enforced and onBackPressed() is no longer called.
Adding workaround to continue using onBackPressed().
(Android 16 is expected to be released around June 2025.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type Pick RequestPick requests to include commits inside a React Native release

    Type

    No type

    Projects

    Status

    Done / Picked

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions