kirillzyusko / react-native-wifi-p2p

Library that provide access for working with wi-fi direct (p2p) module in android.
164 stars 32 forks source link

DeviceEventEmitter.removeListener is deprecated #49

Closed Kacper1104 closed 1 year ago

Kacper1104 commented 2 years ago

Hi, you're using a deprecated way of removing event listener. Currently the supported way of unsubscribing the events is to perform remove() function on subscribtion which is returned by addListener() function. Are you planning to improve this part?
image

index.js line 27

kirillzyusko commented 2 years ago

Hi @Kacper1104 Yes, I was planning :)

I think it's because of RN 0.65?

How did you plug in TypeScript to this project? I think this package doesn't have .d.ts file.

Could you please provide small code example, when you see this warning?