Skip to content

Commit

Permalink
fix(Android): Add RN 0.65 event emitter stubs (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rapsssito authored Apr 26, 2022
1 parent c68215c commit 8c025ef
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,18 @@ public void resume(final int cId) {
TcpSocketClient client = getTcpClient(cId);
client.resume();
}

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

private void requestNetwork(final int transportType) throws InterruptedException {
final NetworkRequest.Builder requestBuilder = new NetworkRequest.Builder();
Expand Down

0 comments on commit 8c025ef

Please sign in to comment.