react-native-background-timer icon indicating copy to clipboard operation
react-native-background-timer copied to clipboard

Warning appears: new NativeEventEmitter()` was called with a non-null argument without the required `removeListeners` method

Open azuxx opened this issue 4 years ago • 10 comments

Hello, after upgrading to RN 0.66 App shows the following:

Screenshot_20211006-154612

So after following the stacktrace I got to this: Screenshot 2021-10-06 at 15 46 32 which actually brings me to your library:

Screenshot 2021-10-06 at 15 48 39

Many libraries are experiencing the same issue like here: https://github.com/react-native-netinfo/react-native-netinfo/pull/487

It would be great to be fixed with your next release.

Cheers

azuxx avatar Oct 06 '21 13:10 azuxx

I had a similar problem that made jest failing #367

shensven avatar Oct 07 '21 08:10 shensven

Same issue here

geroale avatar Mar 09 '22 09:03 geroale

same.

Simoon-F avatar Aug 05 '22 07:08 Simoon-F

I have the same issue.

franiakat avatar Oct 05 '22 13:10 franiakat

same.

GuidoGagliardini avatar Feb 03 '23 17:02 GuidoGagliardini

Any fix so far, experiencing same issue

noumantahir avatar Feb 22 '23 11:02 noumantahir

Since the library hasn't been updated in years, I'm confident the issue is simply that it is out of date, as this stackoverflow post suggests and the only thing you can really do is just hide the message like this:

import { LogBox } from 'react-native';
LogBox.ignoreLogs(['new NativeEventEmitter']);

stefaneran avatar Mar 12 '23 10:03 stefaneran

To fix this problem see:

  • https://github.com/facebook/react-native/blob/6956d4f261130168a72890040ab6630702968e2c/packages/react-native/Libraries/EventEmitter/NativeEventEmitter.js#L52-L72
  • https://stackoverflow.com/a/69650217

lyswhut avatar Mar 21 '23 09:03 lyswhut

+1 was this ever resolved?

phil-hudson avatar Feb 03 '24 05:02 phil-hudson