HeligPfleigh / react-native-thermal-receipt-printer

A RN library for thermal printer
155 stars 102 forks source link

NativeEventEmitter warning #145

Open khaledwani27 opened 1 year ago

khaledwani27 commented 1 year ago

the bug is when I import anything from the library into my code i keep getting a warning that says a new NativeEventEmitter was created without any addListner or removListner functions something related to the adding and removing listeners of an event

i faced this warning when i ran it on android so i don't know about IOS

amanrajtoppoart007 commented 1 year ago

Getting the same problem . How to reproduce :- install the library in any new version of react native , on running "npx react-native run-android" after loading index.js by metro , it will show the warning. new NativeEventEmitter() was called with a non-null argument without the required addListener method.

master1st commented 12 months ago

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

Koykoy200078 commented 8 months ago

any fix for this ? problem recently having this warning also: WARN read failed, socket might closed or timeout, read ret: -1