mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-23 21:25:13 +08:00
kill bridge only after cleaning up NativeModules
Reviewed By: javache Differential Revision: D4734634 fbshipit-source-id: c2d425485679454397d18b1a0c389714c0e3c484
This commit is contained in:
committed by
Facebook Github Bot
parent
cbd46aaa7c
commit
5328d952a8
@@ -171,7 +171,12 @@ public class EventDispatcher implements LifecycleEventListener {
|
||||
}
|
||||
|
||||
public void onCatalystInstanceDestroyed() {
|
||||
stopFrameCallback();
|
||||
UiThreadUtil.runOnUiThread(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
stopFrameCallback();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private void stopFrameCallback() {
|
||||
|
||||
Reference in New Issue
Block a user