Skip to content

Commit

Permalink
fix new NativeEventEmitter() was called with a non-null argument with…
Browse files Browse the repository at this point in the history
…out the required listener warning (#2324)

Co-authored-by: Hernan Paris <hernanparis@Hernans-MBP.fibertel.com.ar>
  • Loading branch information
herparis and Hernan Paris committed Jan 5, 2023
1 parent 9bcf442 commit 67debe6
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -693,4 +693,14 @@ public void clearUpdates() {
CodePushUtils.log("Clearing updates.");
mCodePush.clearUpdates();
}

@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
}
}

0 comments on commit 67debe6

Please sign in to comment.