Closed valentinarapaj closed 6 months ago
@valentinarapaj please specify more details on the environment. Lib version at least And steps please
@valentinarapaj please specify more details on the environment. Lib version at least
Yes I am sorry. Trying on a Samsung Tablet A7.
I am using the last version API.
"react-native-esc-pos-printer": "^3.0.2"
My react-native version
"react-native": "^0.72.7"
The error is at line 258 in file /android/src/main/java/com/reactnativeescposprinter/EscPosPrinterDiscoveryModule.java
mPrinterList.pushMap(printerData);
I've tried to use the hook and the class, but it seems it's not related to the library itself, but the native module written in Java.
@valentinarapaj Just released 3.0.3 with the fix could you please try it out?
Yes the bug is fixed, thank you very much.
Hello. I get this error every time I try do discover printers on an android device.
ERROR Your app just crashed. See the error below. com.facebook.react.bridge.ObjectAlreadyConsumedException: Array already consumed com.facebook.react.bridge.WritableNativeArray.pushNativeMap(Native Method) com.facebook.react.bridge.WritableNativeArray.pushMap(WritableNativeArray.java:57) com.reactnativeescposprinter.EscPosPrinterDiscoveryModule$3$1.run(EscPosPrinterDiscoveryModule.java:258) android.os.Handler.handleCallback(Handler.java:942) android.os.Handler.dispatchMessage(Handler.java:99) android.os.Looper.loopOnce(Looper.java:226) android.os.Looper.loop(Looper.java:313) android.app.ActivityThread.main(ActivityThread.java:8775) java.lang.reflect.Method.invoke(Native Method) com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571) com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)