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

WARN on Android app load #8

Open
HebertGB opened this issue Jun 24, 2022 · 0 comments
Open

WARN on Android app load #8

HebertGB opened this issue Jun 24, 2022 · 0 comments

Comments

@HebertGB
Copy link

WARN new NativeEventEmitter() was called with a non-null argument without the required addListener method.
WARN new NativeEventEmitter() was called with a non-null argument without the required removeListeners method.

To fix it:

edit file /android/src/main/java/com/reactnativesmartconfigswjava/SmarconfigSwjavaModule.java

add this:

// Required for rn built in EventEmitter Calls.
@ReactMethod
public void addListener(String eventName) {
}

@ReactMethod
public void removeListeners(Integer count) {
}

That's solved my issue, like suggest here

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

1 participant