Skip to content

Commit

Permalink
fix(Android): Add RN 0.65 event emitter stubs
Browse files Browse the repository at this point in the history
Fixes #103
  • Loading branch information
Rapsssito committed Oct 15, 2021
1 parent c55a1da commit 83d4621
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,16 @@ public void updateNotification(@NonNull final ReadableMap options, @NonNull fina
}
promise.resolve(null);
}

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

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

0 comments on commit 83d4621

Please sign in to comment.