Skip to content

Commit d6e7d1f

Browse files
committed
readme update
1 parent dbffd42 commit d6e7d1f

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,17 @@ import { MlkitBarcodeView } from "react-native-mlkit-barcode";
1313

1414
// ...
1515

16-
<MlkitBarcodeView color="tomato" />
16+
<MlkitBarcodeView
17+
enableQrScanner={this.state.enableQrScanner}
18+
style={{
19+
width: 900,
20+
height: 900,
21+
}}
22+
onSuccess={(data) => {
23+
console.log("BarCode :", data);
24+
this.setState({enableQrScanner:false})
25+
}}
26+
/>
1727
```
1828

1929
## Contributing

0 commit comments

Comments
 (0)