Not sure which Scandit product fits your use case?
Install our data-capture-sdk skill so your coding agent can answer questions about Scandit products and recommend the right one for your use case, directly from your editor. More info →
Run this in a terminal in your project directory, then follow the instructions to select your coding agent.
npx skills add https://github.com/scandit/skills --skill data-capture-sdkYour coding agent loads the skill automatically based on your prompt; to invoke it explicitly, call /data-capture-sdk followed by your task.
Already installed? Update steps differ by agent — see how to keep your skills up to date.
Installation
This guide shows you how to add the Scandit Data Capture SDK to your existing project.
Prerequisites
- The latest stable version of React Native CLI and other related tools and dependencies.
- A project with:
- minimum node version of 18 or higher.
- minimum iOS deployment target of 15.0 or higher
- an Android project with target SDK version 23 (Android 6, Marshmallow) or higher (version 24 or higher for ID Capture)
- A valid Scandit Data Capture SDK license key. You can sign up for a free test account.
Android devices running the Scandit Data Capture SDK need to have a GPU or the performance will drastically decrease.
Internal Dependencies
Certain Scandit Data Capture SDK modules have package dependencies.
| Module | Dependencies | Optional Dependencies |
|---|---|---|
| scandit-react-native-datacapture-core | None | None |
| scandit-react-native-datacapture-barcode | scandit-react-native-datacapture-core | None |
| scandit-react-native-datacapture-id | scandit-react-native-datacapture-core | scandit-react-native-datacapture-id-europe-driving-license scandit-react-native-datacapture-id-aamva-barcode-verification scandit-react-native-datacapture-id-voided-detection |
| scandit-react-native-datacapture-parser | None | None |
| scandit-react-native-datacapture-label | scandit-react-native-datacapture-core scandit-react-native-datacapture-barcode | scandit-react-native-datacapture-label-text scandit-react-native-datacapture-price-label |
When using ID Capture or Label Capture, consult the respective module's getting started guides to identify the optional dependencies required for your use case. The modules you need to include will vary based on the features you intend to use.
Please be aware that your license may only cover a subset of Barcode and/or ID Capture features. If you require additional features, contact us.
Get a License Key
If you have a paid subscription, please reach out to Scandit Support if you need a new license key.
Add the SDK
Choose your preferred installation method below. Installing from the package registry is simpler and recommended for most users, while manual installation gives you more control over the SDK version.
You should always make sure to add the scandit-react-native-datacapture-core plugin, as all other plugins depend on it.
Create a new project
If you do not have a React Native project yet that you'll use, you should create a new one.
react-native init HelloScandit
cd HelloScandit
- Install from Package Registry (Recommended)
- Install Manually from Dashboard
Install from Package Registry
To add Scandit plugins from the package registry, run the corresponding commands from your project's root folder.
Install the core plugin (required):
- Yarn
- npm
yarn add scandit-react-native-datacapture-core
npm install scandit-react-native-datacapture-core
Then add the plugin(s) for your desired functionality:
- Yarn
- npm
# For barcode scanning
yarn add scandit-react-native-datacapture-barcode
# For ID capture
yarn add scandit-react-native-datacapture-id
# For label capture
yarn add scandit-react-native-datacapture-label
# For barcode scanning
npm install scandit-react-native-datacapture-barcode
# For ID capture
npm install scandit-react-native-datacapture-id
# For label capture
npm install scandit-react-native-datacapture-label
You can add only the plugins you need as described in the Internal Dependencies section. You can also specify a version @<version>.