| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
This repository contains multiple samples that demonstrate how to use the Dynamsoft Barcode Reader React-Native Edition.
There are two ways to use the Dynamsoft Barcode Reader React-Native SDK:
| Sample Name | Description |
|---|---|
| ScanBarcodes_ReadyToUseComponent | Demonstrates the quickest way to scan barcodes from live camera preview using the Ready-to-Use Barcode Scanner component, with minimal configuration required. |
| ScanBarcodes_FoundationalAPI | Demonstrates how to scan barcodes from live camera preview using the Foundational API, providing full control over camera, processing pipeline, and barcode results. |
| ScanBarcodes_Expo | Demonstrates barcode scanning using the Foundational API in an Expo (Bare) project, showing how to integrate Dynamsoft Barcode Reader into an Expo-based workflow. |
| ScanDriversLicense | Demonstrates how to recognize and extract information from drivers’ licenses in real-time video streaming. |
| ScanVIN | Demonstrates how to recognize and extract information from VIN barcodes in real-time video streaming. |
| ScenarioOptimizedScanning | Demonstrates how to optimize scanning performance for different barcode formats and scenarios by loading scenario-specific templates (1D Retail, 1D Industrial, QR Code, Data Matrix, Aztec, Dot Code, DPM, PDF417, and High-Density codes). |
| BarcodeReaderSettings | Demonstrates how to configure the barcode reading settings via the Foundational API, including barcode formats, expected barcode count, minimum result confidence, and timeout. |
| LocateAnItemWithBarcode | Demonstrates how to locate an item by scanning or entering its barcode ID, using visual guidance to help find the matching item in real-time video streaming. |
| ReadGS1AI | Demonstrates how to recognize and parse GS1 Application Identifiers (AIs) from barcodes, extracting and formatting fields such as dates and other AI data. |
📌 Note on sample types
The samples above are divided into two categories based on the project type:
- React Native CLI samples (non-Expo): ScanBarcodes_ReadyToUseComponent, ScanBarcodes_FoundationalAPI, ScanDriversLicense, ScanVIN
- Expo (Bare) samples: ScanBarcodes_Expo, ScenarioOptimizedScanning, BarcodeReaderSettings, LocateAnItemWithBarcode, ReadGS1AI
Please refer to the corresponding build instructions below for your sample type.
cd ScanBarcodes_FoundationalAPIor
cd ScanBarcodes_ReadyToUseComponentor
cd ScanDriversLicenseor
cd ScanVINRun the following command:
yarn installor
npm installYou must install the necessary native frameworks from CocoaPods to run the application. In order to do this, the pod install command needs to be run as such:
cd ios
pod installOpen the workspace file *.xcworkspace (not .xcodeproj) from the ios directory in Xcode. Adjust Provisioning and Signing settings.
Go to your project folder and run the following command:
# using npm
npm run android
# OR using Yarn
yarn androidIn the terminal, go to the project folder in your project:
# using npm
npm run ios
# OR using Yarn
yarn iosIf everything is set up correctly, you should see your new app running on your device. This is one way to run your app — you can also run it directly from within Android Studio and Xcode respectively.
Note
If you want to run Android via Windows, You may encounter some build errors due to the Windows Maximum Path Length Limitation. Therefore, we recommend that you move the project to a directory with a shorter path.
Note
cd ScanBarcodes_Expoor
cd ScenarioOptimizedScanningor
cd BarcodeReaderSettingsor
cd LocateAnItemWithBarcodeor
cd ReadGS1AIyarn installor
npm installRun the following command to generate the android and ios folders:
npx expo prebuildInstall the necessary native frameworks from CocoaPods:
cd ios
pod install
cd ..npx expo run:androidnpx expo run:iosNote
The application needs to run on a physical device rather than a simulator as it requires the use of the camera.
How to enable new architecture in Android
How to enable new architecture in iOS
| Back | FazBrowse Home | New Git URL |