How to get WXSDKInstance in custom IActivityNavBarSetter in weex android version?

Weex provides WXNavigatorModule for navigation control, and the corresponding method can be customized by setting the IActivityNavBarSetter API. Navigation control needs to get the Activity, of the current operation, but this interface IActivityNavBarSetter can"t get the WXSDKInstance instance of WXNavigatorModule.

do I understand it wrong, or is there another way to solve it?

Feb.28,2021

I encountered the same problem. The final solution is to copy a copy of the WXNavigatorModule code, and then overwrite the original module

.
Menu