react-native-tts icon indicating copy to clipboard operation
react-native-tts copied to clipboard

Warning new NativeEventEmitter

Open leoquintara opened this issue 2 years ago • 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) {

}`

leoquintara avatar Aug 09 '23 04:08 leoquintara

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

medamine980 avatar Sep 14 '23 17:09 medamine980

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 :)

fatidian1 avatar Nov 05 '23 04:11 fatidian1

hi good morning i am integrated snippet in this file:

https://github.com/JorgeAntrax/react-native-speech/compare/master...ak1394:react-native-tts:master#diff-57bfb1f48cb13a06b139b770dda0107085b3137db5431b45122de090760ea34f

leoquintara avatar Nov 10 '23 15:11 leoquintara

image

leoquintara avatar Nov 10 '23 15:11 leoquintara

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

atanu3000 avatar Mar 20 '24 10:03 atanu3000