We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e4bf6b commit fa5e2c1Copy full SHA for fa5e2c1
README.md
@@ -9,18 +9,15 @@ npm install react-native-mlkit-barcode
9
## Usage
10
11
```js
12
-import { MlkitBarcodeView } from "react-native-mlkit-barcode";
+import { MlkitBarcodeView, BARCODE } from "react-native-mlkit-barcode";
13
14
// ...
15
16
<MlkitBarcodeView
17
enableQrScanner={this.state.enableQrScanner}
18
- style={{
19
- width: 900,
20
- height: 900,
21
- }}
+ barcodeFormat={BARCODE.FORMAT_ALL_FORMATS}
22
onSuccess={(data) => {
23
- console.log("BarCode :", data);
+ console.log("App BarCode On Success :", data);
24
this.setState({enableQrScanner:false})
25
}}
26
/>
0 commit comments