Agontuk / react-native-geolocation-service

React native geolocation service for iOS and android
https://www.npmjs.com/package/react-native-geolocation-service
MIT License
1.6k stars 291 forks source link

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

Closed andreialecu closed 2 years ago

andreialecu commented 2 years ago

Getting the warning:

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

In React Native 0.65.

Related line: https://github.com/Agontuk/react-native-geolocation-service/blob/ffc3cc301420e72ab32b38a83907eb76997ccc45/js/Geolocation.native.js#L4

tlt254 commented 2 years ago

Same

andreialecu commented 2 years ago

Here's a diff from a different package that fixes this warning:

https://github.com/software-mansion/react-native-reanimated/pull/2316/files

Should be easy to fix if someone can test it and submit a PR.

Agontuk commented 2 years ago

Here's a diff from a different package that fixes this warning:

https://github.com/software-mansion/react-native-reanimated/pull/2316/files

Should be easy to fix if someone can test it and submit a PR.

Thanks for the link, I'll try fixing it as soon as possible.

EverStarck commented 2 years ago

Hi I saw a commit fixing this warning but it still appears in the same way as op said. I'm in react-native: 0.65.1 and in react-native-geolocation-service": "^5.3.0-beta.2

andreialecu commented 2 years ago

There was no release made with this particular fix yet. 5.3.0-beta.2 is a couple of months old.

EverStarck commented 2 years ago

There was no release made with this particular fix yet. 5.3.0-beta.2 is a couple of months old.

The last version is from 6 days ago. But it doesn't include this fix, so, you right 😅😅. Thanks for answering

mrousavy commented 2 years ago

Hey @Agontuk, thanks for fixing this issue! Could you publish a new version on npm when you have some free time? Thanks!

Agontuk commented 2 years ago

new version published

ClaraGaya commented 2 years ago

Hi, I'm still getting the issue, I'm in "react-native": "0.66.2", and in "react-native-geolocation-service": "^5.3.0-beta.3"

freemanUA commented 2 years ago

why it is closed?

suresh03 commented 2 years ago

react-native-otp-inputs this package also same this issues how to fix it please help me

gomezmark commented 1 year ago

anyone solved this issue? Thanks