Skip to content

Support unregistering delegate from BrownfieldNavigationManager #307

@Sunny9966

Description

@Sunny9966

Describe the feature

Add a way to unregister the current navigation delegate from BrownfieldNavigationManager, either via a dedicated clearDelegate() method or by allowing null to be passed to setDelegate().

Motivation

In a brownfield app where multiple Activities each host a ReactNativeFragment, the delegate needs to be unregistered when an Activity is no longer in the foreground. Currently setDelegate() only accepts a non-nullable delegate and there is no way to clear it, meaning a backgrounded Activity's delegate remains registered and can receive navigation events intended for the currently active screen.

Related Issues

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