Migrate all NativeModules to invalidate()

Summary:
This diff migrates all NativeModules away from onCatalystInstanceDestroy() to the invalidate() method.

Changelog: [Internal]

Reviewed By: JoshuaGross

Differential Revision: D26871595

fbshipit-source-id: 132f6b75e485361835769a2b53bc742eefa47b59
This commit is contained in:
Ramanpreet Nara
2021-03-06 20:30:17 -08:00
committed by Facebook GitHub Bot
parent 18c8417290
commit 3f0df9788b
12 changed files with 20 additions and 23 deletions
@@ -93,7 +93,7 @@ public class LogBoxModule extends NativeLogBoxSpec {
}
@Override
public void onCatalystInstanceDestroy() {
public void invalidate() {
UiThreadUtil.runOnUiThread(
new Runnable() {
@Override