react-native-mlkit-barcode
TypeScript icon, indicating that this package has built-in type declarations

0.1.16 • Public • Published

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

Package Sidebar

Install

npm i react-native-mlkit-barcode

Weekly Downloads

3

Version

0.1.16

License

MIT

Unpacked Size

488 kB

Total Files

53

Last publish

Collaborators

  • nxtcorner