Skip to content

Commit 67debe6

Browse files
herparisHernan Paris
and
Hernan Paris
authored
fix new NativeEventEmitter() was called with a non-null argument without the required listener warning (#2324)
Co-authored-by: Hernan Paris <[email protected]>
1 parent 9bcf442 commit 67debe6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

android/app/src/main/java/com/microsoft/codepush/react/CodePushNativeModule.java

+10
Original file line numberDiff line numberDiff line change
@@ -693,4 +693,14 @@ public void clearUpdates() {
693693
CodePushUtils.log("Clearing updates.");
694694
mCodePush.clearUpdates();
695695
}
696+
697+
@ReactMethod
698+
public void addListener(String eventName) {
699+
// Set up any upstream listeners or background tasks as necessary
700+
}
701+
702+
@ReactMethod
703+
public void removeListeners(Integer count) {
704+
// Remove upstream listeners, stop unnecessary background tasks
705+
}
696706
}

0 commit comments

Comments
 (0)