You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When RNRestart.Restart() is executed, I need to clean up some custom modules on Android.
With the dev metro server running, it executes onDropViewInstance inside a RN Module ViewManager which extends SimpleViewManager (which extends in the end BaseJavaModule) correctly on restart. So I can destroy some views if needed.
But with a release (or even debuggable) build, but without using the dev server, this function is not called at all (I also checked others like invalidate, onCatalystInstanceDestroy, onHostDestroy, but those won't work).
How can I cleanup stuff inside a module / ViewManager when the app is running standalone without a dev server?
Is this a bug, or why is onDropViewInstance not called?
The text was updated successfully, but these errors were encountered:
When
RNRestart.Restart()
is executed, I need to clean up some custom modules on Android.With the dev metro server running, it executes
onDropViewInstance
inside a RN Module ViewManager which extendsSimpleViewManager
(which extends in the endBaseJavaModule
) correctly on restart. So I can destroy some views if needed.But with a release (or even debuggable) build, but without using the dev server, this function is not called at all (I also checked others like invalidate, onCatalystInstanceDestroy, onHostDestroy, but those won't work).
How can I cleanup stuff inside a module / ViewManager when the app is running standalone without a dev server?
Is this a bug, or why is
onDropViewInstance
not called?The text was updated successfully, but these errors were encountered: