AzizAK / react-native-detector

a screenshot detector for react native
MIT License
210 stars 40 forks source link

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

Open phuocantd opened 1 year ago

phuocantd commented 1 year ago

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

"react": "18.2.0",
"react-native": "^0.70.6",
"react-native-detector": "^0.2.3",
lakhwinderdebut commented 1 year ago

i have the same issue, did you able to solve it?

phuocantd commented 1 year ago

fix at https://github.com/AzizAK/react-native-detector/pull/63

reference: https://stackoverflow.com/questions/69538962/new-nativeeventemitter-was-called-with-a-non-null-argument-without-the-requir