{"repo":"mrousavy/react-native-data-scanner","free":true,"listed":false,"github":"https://github.com/mrousavy/react-native-data-scanner","clone":"git clone https://github.com/mrousavy/react-native-data-scanner.git","description":"Super fast one-shot QR/Barcode/Data scanning for React Native","language":"Swift","stars":141,"topics":["barcode","camera","code","ean-13","mlkit","pdf","qr","qr-code","react-native","scan"],"license":"MIT","category":"mobile-apps","readme_excerpt":"react-native-data-scanner Fast one-shot QR/Barcode scanning for React Native powered by Nitro Modules and platform-native scanner UIs. - On Android, Google's Code Scanner scans QR/Barcodes via a Google Play Services Activity, which does not even require Camera Permission. - On iOS, VisionKit scans QR/Barcodes via a platform-native DataScannerViewController Usage 1. Install the package 2. Configure Camera Usage (iOS only) Choose the setup that matches your app: Expo Add NSCameraUsageDescription to your Expo app config (e.g. app.json ): This library contains native code, so Expo apps need a development build or production build. It does not run inside Expo Go. Rebuild the native app after changing native config, for example with npx expo run:ios or EAS Build. Bare React Native Add NSCameraUsageDescription to your app's Info.plist : Android does not require additional setup. 3. Scan a barcode That's it. Calling scanBarcode(...) presents the native scanner UI and resolves with the scanned barcode. UI Demo API DataScanner.scanBarcode(options?) Presents the scanner UI and resolves with the first barcode the user selects. - targetFormats : optional non-empty array of barcode formats. Omit it to scan all supported formats. - qualityLevel : quality/performance preference. Defaults to 'balanced' . - enableHighFrameRateTracking : high-frame-rate geometry tracking preference. Defaults to false . - enableAutoZoom : automatic zoom preference for distant barcodes. Defaults to false . The pr","default_branch":null,"files":null,"tree":[],"storefront":"/r/mrousavy","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mrousavy/react-native-data-scanner/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}