mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook GitHub Bot
parent
18c8417290
commit
3f0df9788b
@@ -893,7 +893,7 @@ public class NativeAnimatedModule extends NativeAnimatedModuleSpec
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onCatalystInstanceDestroy() {
|
||||
public void invalidate() {
|
||||
ReactApplicationContext context = getReactApplicationContextIfActiveOrWarn();
|
||||
if (context != null) {
|
||||
context.removeLifecycleEventListener(this);
|
||||
|
||||
Reference in New Issue
Block a user