1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

Fix event warning

This commit is contained in:
sunnylqm 2021-10-06 09:26:42 +08:00
parent e66d102e85
commit cac92b43c7

View File

@ -280,6 +280,15 @@ public class UpdateModule extends ReactContextBaseJavaModule {
promise.resolve(updateContext.getKv("hash_" + hash));
}
@ReactMethod
public void addListener(String eventName) {
// Set up any upstream listeners or background tasks as necessary
}
@ReactMethod
public void removeListeners(Integer count) {
// Remove upstream listeners, stop unnecessary background tasks
}
/* 发送事件*/
public static void sendEvent(String eventName, WritableMap params) {