0

I have zebra bluetooth scanner. I have connected that zebra scanner with bluetooth. Now my app should read whatever I scan any barcode. But How? Which library will read scanned barcode data? I have tried so many library but not working. I have tried following packages but no luck:

  1. react-native-scanner-zebra - emdk error while runing react-native run-android
  2. @nextup/react-native-zebra-scanner - giving error on (on) event
  3. react-native-datawedge-intents - Tried default example but not working.

Please help me with this. I have spent 2 days to fix this issue but not fixed yet. Plzz Plzz Help.

Thanks in advance:)

Maxx P
  • 148
  • 10
  • Do you have any documentation of the device? Some barcode scanners simply act as HID (e.g. keyboard) – Michael Kotzjan Mar 02 '22 at 06:26
  • I am using zebra scanner Modal - DS2278 – Maxx P Mar 02 '22 at 06:44
  • Actually when I focused on textinput and then scan any barcode then barcode data appearing on textinput but I want it in backgound case. For ex: When I am on any screens and I scan any barcode then it's code will show in useeffect or any event. – Maxx P Mar 02 '22 at 06:51
  • Maybe you need to look for a way to capture keyboard input before that then. See https://stackoverflow.com/questions/49199745/how-do-i-listen-to-keyboard-input-in-react-native – Michael Kotzjan Mar 02 '22 at 06:55
  • Yeah but it will only disable the keyboard.I also dont want to show textinput. I want to detect barcode scanner data without textinput. – Maxx P Mar 02 '22 at 07:04
  • Which Android device have you paired the DS2278 with? FWIW I am the author of the react-native-datawedge-intents plugin – Darryn Campbell Mar 02 '22 at 08:10
  • Realme 2 device I have paired with DS2278. I have used react-native-datawedge-intents plugin but for that I need datawedge application and that application we only get it in zebra device. – Maxx P Mar 02 '22 at 08:39
  • Same problem here, I can't make the three libraries you listed to work... Which one do you use now ? – R1' Apr 12 '22 at 16:40

0 Answers0