Installing the React Native Barcode Scanner SDK
To install the Barcode Scanner SDK, run the following in your root project folder:
- npm
- Yarn
- Expo
npm install react-native-scanbot-barcode-scanner-sdk
yarn add react-native-scanbot-barcode-scanner-sdk
npx expo install react-native-scanbot-barcode-scanner-sdk
Integration with Expo
Integration with Expo is possible only when using a Development Build, not Expo Go. The project is configurable using our config plugin or by manually configuring the native projects.
To utilize the plugin, add the following in your app config file:
"plugins": [
[
"react-native-scanbot-barcode-scanner-sdk",
{
"iOSCameraUsageDescription": "Barcode Camera permissions",
"androidCameraPermission": true,
"androidCameraFeature": true,
"mavenURLs": true
}
]
],
iOSCameraUsageDescription: AddsNSCameraUsageDescriptionin Info.plist. The permission can also be added via Expo PermissionsandroidCameraPermission: Addsandroid.permission.CAMERApermission in AndroidManifest.xml. The permission can also be added via Expo PermissionsandroidCameraFeature: Addsandroid.hardware.camerafeature in AndroidManifest.xmlmavenURLs: Adds Scanbot Barcode Scanner SDK Maven URLs for Android local development. These URLs are already included in our package's build.gradle, but need to be added due to how Expo starts the Android app.
Want to scan longer than one minute?
Generate a free trial license to test the Scanbot SDK thoroughly.
Get free trial licenseScanbot SDK is part of the Apryse SDK product family
A mobile scan is just the start. With Apryse SDKs, you can expand mobile workflows into full cross‑platform document processing. Whether you need to edit PDFs, add secure digital signatures, or use a fast, customizable document viewer and editor, Apryse gives you the tools to build powerful features quickly.
Learn more
