From a9d9961e81bca663dd1763f6f997d9ef7433b586 Mon Sep 17 00:00:00 2001 From: Mathias Date: Tue, 14 Dec 2021 10:16:38 -0300 Subject: [PATCH] fix native event emitter warnings --- .../com/goodatlas/audiorecord/RNAudioRecordModule.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/android/src/main/java/com/goodatlas/audiorecord/RNAudioRecordModule.java b/android/src/main/java/com/goodatlas/audiorecord/RNAudioRecordModule.java index 11c5ad8..8933235 100644 --- a/android/src/main/java/com/goodatlas/audiorecord/RNAudioRecordModule.java +++ b/android/src/main/java/com/goodatlas/audiorecord/RNAudioRecordModule.java @@ -47,6 +47,16 @@ public String getName() { return "RNAudioRecord"; } + @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 init(ReadableMap options) { sampleRateInHz = 44100;