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
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