react-native-esc-pos-printer icon indicating copy to clipboard operation
react-native-esc-pos-printer copied to clipboard

iOS: Module ThePrinterWrapper requires main queue setup error

Open sisoalbert opened this issue 2 years ago • 6 comments

I am getting this error on iOS: Module ThePrinterWrapper requires main queue setup since it overrides init but doesn't implement requiresMainQueueSetup.

sisoalbert avatar Jan 09 '23 08:01 sisoalbert

@sisoalbert yes i am getting the same. did you manage to find the solution?

Rehankhalil462 avatar Feb 14 '23 08:02 Rehankhalil462

@Rehankhalil462 @sisoalbert could you please expand on it please? It would be great to have a reproducible demo or at least a bit more details. (steps, code snipped, lin and OS version, react-native or expo and etc.)

tr3v3r avatar Feb 14 '23 10:02 tr3v3r

@tr3v3r hi, I'm also facing the same warning and couldn't get the app working with flipper open Screenshot 2023-02-15 at 7 59 23 AM

"react-native-esc-pos-printer": "^2.3.0",
"react-native": "^0.70.6",

and run the example.. here is the solution , if you could check plz: https://reactnative.dev/docs/0.61/native-modules-ios#implementing--requiresmainqueuesetup

HalimaHanafy-ZID avatar Feb 15 '23 06:02 HalimaHanafy-ZID

@Rehankhalil462 @sisoalbert could you please expand on it please? It would be great to have a reproducible demo or at least a bit more details. (steps, code snipped, lin and OS version, react-native or expo and etc.)

I am using following configuration expo : sdk 46 react-native : 0.69.6 react : 18.0.0

and using expo development build for app to run in Expo GO.

Testing Environment Android Device : Samsung Galaxy J7 Pro Ios Device : Iphone 11

Rehankhalil462 avatar Feb 15 '23 06:02 Rehankhalil462

@tr3v3r Hey, I have the same warning. Doesn't cause any issues, I can print but it always shows up on launch of the app.

tolypash avatar May 07 '23 13:05 tolypash

@tr3v3r I'm seeing this error in trying to get my RN code to work. I think it may be related to the issue I'm seeing. if i put the code to print directly tied to a button press it seems to work. However, when I seem to execute the code in an asynchronous manner I get a "ERR_CONNECT" message and it doesn't print.

Hyperman012 avatar Jul 05 '23 11:07 Hyperman012

Please use 4.0.0 version

tr3v3r avatar Jul 25 '24 09:07 tr3v3r