Skip to content

code76kb/react-native-mlkit-barcode

Repository files navigation

react-native-mlkit-barcode

Google mlkit based barcode-qr code scanner

Installation

npm install react-native-mlkit-barcode

Usage

import { MlkitBarcodeView, BARCODE } from "react-native-mlkit-barcode";

// ...

 <MlkitBarcodeView
          style={{width:800, height:800}}
          enableScanner={this.state.enableScanner}
          barcodeFormat={BARCODE.FORMAT_ALL_FORMATS}
          onSuccess={(data) => {
            console.log("BarCode On Success :", data);
            this.setState({enableScanner:false})
          }}
        />

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library