Skip to content

Commit fa5e2c1

Browse files
committed
Readme updated
1 parent 3e4bf6b commit fa5e2c1

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

README.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,15 @@ npm install react-native-mlkit-barcode
99
## Usage
1010

1111
```js
12-
import { MlkitBarcodeView } from "react-native-mlkit-barcode";
12+
import { MlkitBarcodeView, BARCODE } from "react-native-mlkit-barcode";
1313

1414
// ...
1515

1616
<MlkitBarcodeView
1717
enableQrScanner={this.state.enableQrScanner}
18-
style={{
19-
width: 900,
20-
height: 900,
21-
}}
18+
barcodeFormat={BARCODE.FORMAT_ALL_FORMATS}
2219
onSuccess={(data) => {
23-
console.log("BarCode :", data);
20+
console.log("App BarCode On Success :", data);
2421
this.setState({enableQrScanner:false})
2522
}}
2623
/>

0 commit comments

Comments
 (0)