Open chenyunlin1 opened 8 months ago
+1
+1
+1
+1
+1
same
add this line under /your project/node_modules/react-native-tts/android/src/main/java/net/no_mad/tts/TextToSpeechModule.java
@ReactMethod
public void removeListeners(Integer count) {
// Keep: Required for RN built in Event Emitter Calls.
}
@ReactMethod
public void addListener(String eventName) {
// Keep: Required for RN built in Event Emitter Calls.
}
If you raise a PR I will merge and deploy for you
These two warnings are reported after use,How to solve this warn?
new NativeEventEmitter()
was called with a non-null argument without the requiredaddListener
method.new NativeEventEmitter()
was called with a non-null argument without the requiredremoveListeners
method.