Skip to content

Commit

Permalink
fix: warnings after RN 0.65 upgrade (#409)
Browse files Browse the repository at this point in the history
* fix: warnings after RN 0.65 upgrade

* fix: use int instead of number

* fix: use Int instead of a Number
  • Loading branch information
radko93 authored Sep 23, 2021
1 parent 5c29981 commit 8e3401a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,16 @@ class RCTAgoraRtcChannelModule(
return manager[channelId]
}

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

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

@ReactMethod
fun callMethod(methodName: String, params: ReadableMap?, callback: Promise?) {
manager.javaClass.declaredMethods.find { it.name == methodName }?.let { function ->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,16 @@ class RCTAgoraRtcEngineModule(
return manager.engine
}

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

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

@ReactMethod
fun callMethod(methodName: String, params: ReadableMap?, callback: Promise?) {
manager.javaClass.declaredMethods.find { it.name == methodName }?.let { function ->
Expand Down

0 comments on commit 8e3401a

Please sign in to comment.