mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-02-10 17:22:45 +08:00
add removeReactInstanceEventListener and call it from onDestroy
Reviewed By: zahanm Differential Revision: D2937547 fb-gh-sync-id: 95461fdada8ac86d2c4174dae7023c97a3101e2e shipit-source-id: 95461fdada8ac86d2c4174dae7023c97a3101e2e
This commit is contained in:
committed by
facebook-github-bot-6
parent
f74981ac32
commit
07a5f4407f
@@ -136,6 +136,11 @@ public abstract class ReactInstanceManager {
|
||||
*/
|
||||
public abstract void addReactInstanceEventListener(ReactInstanceEventListener listener);
|
||||
|
||||
/**
|
||||
* Remove a listener previously added with {@link #addReactInstanceEventListener}.
|
||||
*/
|
||||
public abstract void removeReactInstanceEventListener(ReactInstanceEventListener listener);
|
||||
|
||||
@VisibleForTesting
|
||||
public abstract @Nullable ReactContext getCurrentReactContext();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user