Rapsssito / react-native-background-actions

React Native background service library for running background tasks forever in Android & iOS.
MIT License
818 stars 117 forks source link

Warning messages on import #103

Closed tristanbsn closed 3 years ago

tristanbsn commented 3 years ago

When importing with import BackgroundService from 'react-native-background-actions'; , metro shows the following warnings :

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

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

I use react-native v0.66.0 and react-native-background-actions v2.6.4

Rapsssito commented 3 years ago

@tristanbsn, thanks for the feedback, I will start working on it as soon as possible. It looks like the fix might be a long the lines of https://github.com/mikehardy/react-native-reanimated/commit/cdb004f538543c8ea7916b239b379b547588c50b.

github-actions[bot] commented 3 years ago

:tada: This issue has been resolved in version 2.6.5 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

tristanbsn commented 3 years ago

It works, thank you.