Skip to content

Commit

Permalink
Merge pull request #212 from mlecoq/fix/warningRemoveListeners
Browse files Browse the repository at this point in the history
fix: add stub methods to remove warning while using listeners
  • Loading branch information
wonday committed Apr 5, 2022
2 parents f7b4043 + 0d830d0 commit 8947337
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -382,4 +382,14 @@ public void release() {
FLog.w(ReactConstants.TAG, "Receiver already unregistered", e);
}
}

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

0 comments on commit 8947337

Please sign in to comment.