Skip to content

Commit

Permalink
Adds missing addListener and removeListeners functions to RNPurchases…
Browse files Browse the repository at this point in the history
…Module.java (#339)
  • Loading branch information
vegaro authored Mar 16, 2022
1 parent 12a1aa5 commit 9d27224
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,16 @@ public void onCatalystInstanceDestroy() {
}
}

@ReactMethod
public void addListener(String eventName) {
// Keep: Required for RN built in Event Emitter Calls.
}

@ReactMethod
public void removeListeners(Integer count) {
// Keep: Required for RN built in Event Emitter Calls.
}

@ReactMethod
public void setupPurchases(String apiKey, @Nullable String appUserID,
boolean observerMode, @Nullable String userDefaultsSuiteName) {
Expand Down

0 comments on commit 9d27224

Please sign in to comment.