Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning new NativeEventEmitter #247

Open
JorgeAntrax opened this issue Aug 9, 2023 · 5 comments
Open

Warning new NativeEventEmitter #247

JorgeAntrax opened this issue Aug 9, 2023 · 5 comments

Comments

@JorgeAntrax
Copy link

JorgeAntrax commented Aug 9, 2023

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

}`
@medamine980
Copy link

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

@fatidian1
Copy link

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

@JorgeAntrax
Copy link
Author

@JorgeAntrax
Copy link
Author

image

@atanu3000
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants