ak1394/react-native-tts

Warning new NativeEventEmitter

JorgeAntrax opened this issue · 5 comments

I am using react native 0.72.0 and console errors report me a wanring of 2 missing methods in the java module, if this module is still maintained please add the change to avoid warning and / or update the package with these settings:

`@ReactMethod
public void addListener(String eventName) {

}

@ReactMethod
public void removeListeners(Integer count) {

}`

Where do exactly I have to put this methods to avoid the warnings?

Where do exactly I have to put this methods to avoid the warnings?

node_modules\react-native-tts\android\src\main\java\net\no_mad\tts\TextToSpeechModule.java - here, at the end of the class :)

Thank you. It works perfectly. No warning is got now.