Search code examples
androidreact-nativeexpobarcode-scanner

Can I use a Zebra scanner package with Expo project in React Native?


There is an npm package for Zebra scanners (Barcode scanner with laser/not camera) that we need to use in an Android app we plan to build with React Native. Now Expo CLI seems like the way to go but after some quick research, we are not too sure if this is possible - to include this zebra package in an Expo project. Can you confirm this is the case?

I ask because of the following facts regarding using Expo:

  • You can't add native modules (probably a gamechanger for some)
  • You can't use libraries that use native code in Objective-C/Java

The application should allow a user to use the Zebra scanner running Android OS to scan a barcode and return the scanned data.

Package link: https://www.npmjs.com/package/react-native-zebra-scanner


Solution

  • @yeslamFaded - as per answer: In this package you need to change something inside the android/settings file and you dont have this when you work with expo. To use this package you would have to exject from expo