react-qr-barcode-scanner
Advanced tools
Comparing version
@@ -1,2 +0,4 @@ | ||
import BarcodeScannerComponent from './BarcodeScannerComponent'; | ||
export default BarcodeScannerComponent; | ||
import BarcodeScanner from "./BarcodeScanner"; | ||
export { default as BarcodeStringFormat } from "./BarcodeStringFormat"; | ||
export { BarcodeFormat } from "@zxing/library"; | ||
export default BarcodeScanner; |
@@ -1,2 +0,4 @@ | ||
import BarcodeScannerComponent from './BarcodeScannerComponent'; | ||
export default BarcodeScannerComponent; | ||
import BarcodeScanner from "./BarcodeScanner"; | ||
export { default as BarcodeStringFormat } from "./BarcodeStringFormat"; | ||
export { BarcodeFormat } from "@zxing/library"; | ||
export default BarcodeScanner; |
{ | ||
"name": "react-qr-barcode-scanner", | ||
"version": "2.0.4", | ||
"version": "2.1.0", | ||
"description": "A simple React Component using the client's webcam to read barcodes and QR codes.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -21,11 +21,11 @@ # React QR Barcode Scanner | ||
```jsx | ||
import React from "react"; | ||
import BarcodeScannerComponent from "react-qr-barcode-scanner"; | ||
import { useState } from "react"; | ||
import BarcodeScanner from "react-qr-barcode-scanner"; | ||
function App() { | ||
const [data, setData] = React.useState("Not Found"); | ||
const [data, setData] = useState("Not Found"); | ||
return ( | ||
<> | ||
<BarcodeScannerComponent | ||
<BarcodeScanner | ||
width={500} | ||
@@ -102,2 +102,8 @@ height={500} | ||
### formats | ||
Type: `BarcodeFormat[] | BarcodeStringFormat[]`, Optional | ||
Array of barcode formats to decode. If not provided, all formats will be used. A smaller list may improve the speed of the scan. | ||
## Supported Barcode Formats | ||
@@ -104,0 +110,0 @@ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
15382
55.37%8
33.33%220
168.29%148
4.23%1
Infinity%