Skip to content

Crashes on Android 15 & react-native 0.77.0 _reactNative.BackHandler.removeEventListener is not a function #337

@wottpal

Description

@wottpal

Might be related to #334. Is there any known workaround/hotfix rn?

Image

Update: Ugly Hotfix

if (Platform.OS === 'android' && !(BackHandler as any).removeEventListener) {
  ;(BackHandler as any).removeEventListener = () => {}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions