clipboard icon indicating copy to clipboard operation
clipboard copied to clipboard

[email protected] WARN `new NativeEventEmitter()` was called with a non-null argument without the required `addListener` method.

Open zongjiang-gh opened this issue 3 years ago • 6 comments

Appeared in react-native 0.65.1 Android development:

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.

It can be fixed like this https://github.com/invertase/react-native-firebase/pull/5616/files#diff-c887076b0c80d540aed1bfbb472cc8f20516634e8e72d53014c65d690bba4fb1

zongjiang-gh avatar Sep 22 '21 03:09 zongjiang-gh

I'm seeing this too after updating React Native.

klandell avatar Sep 22 '21 13:09 klandell

I have the same issue with iOS with ``new NativeEventEmitter() requires a non-null argument.

GuillaumeHemmen avatar Oct 04 '21 09:10 GuillaumeHemmen

Should be resolved with https://github.com/react-native-clipboard/clipboard/pull/113

cristianoccazinsp avatar Oct 12 '21 16:10 cristianoccazinsp

@zongjiang-gh thanks for raising the issue! this should be resolved in the latest version

Naturalclar avatar Oct 13 '21 02:10 Naturalclar

I've just encountered this issue. I am on RN 0.68.2.

adamtsai1 avatar Sep 21 '22 23:09 adamtsai1

I'm also using RN 0.68.2 and I've found this error after installing this library

jailandrade avatar Sep 29 '22 05:09 jailandrade

Those on 0.68.2, did you manage to fix the issue? Or did upgrading RN fix it?

derochedesign avatar Feb 13 '23 02:02 derochedesign

Experiencing this issue on RN 0.67.4

mharrison-nzme avatar Feb 14 '23 05:02 mharrison-nzme

Should be resolved with #113

This would have only affected the Android version, right? And people are seeing this on iOS and Windows. So this needs a deeper fix. Has anyone attempted the style of fix listed above? If I can get that to work I'll submit a PR, but so far I haven't gotten it yet.

chrisglein avatar Mar 15 '23 01:03 chrisglein

Hi, For whom still confront this issue: I found the way here just simply cd ios and pod install then start your project again Hope this helps!

thongle12 avatar Apr 18 '23 10:04 thongle12

I believe this is still an issue

espipj avatar Oct 02 '23 00:10 espipj

I believe this is still an issue

Yes it is, for iOS. There has been a fix made for Android and Windows, but iOS needs a similar fix if anyone wants to make a PR.

chrisglein avatar Oct 02 '23 14:10 chrisglein

error still persists

mertcankose avatar Nov 18 '23 14:11 mertcankose

error still persists

On which platform?

chrisglein avatar Nov 18 '23 14:11 chrisglein

error still persists

On which platform?

Oh sorry, I started ios simulator again. It solved.

mertcankose avatar Nov 18 '23 14:11 mertcankose