2.0.48 • Published 10 months ago

@phygrid/barcode-scanner v2.0.48

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

React custom hook for barcode scanner integration.

Installation

npm install @ombori/ga-barcode-scanner --save

or

yarn add @ombori/ga-barcode-scanner

Usage

import useBarcodeScanner from '@ombori/ga-barcode-scanner';

const App = () => {
  const onScan = (barcode) => console.log(barcode);

  useBarcodeScanner(onScan);
  
  return <div>Hello World!</div>;
}

Helpers

There are also two helper functions that you can use to differentiate barcodes and boarding passes.

import { isBarcode, isBoardingPass } from '@ombori/ga-barcode-scanner';
2.0.48

10 months ago

2.0.47

10 months ago

2.0.46

10 months ago

2.0.45

10 months ago

2.0.44

10 months ago

2.0.42

11 months ago

2.0.41

11 months ago

2.0.40

1 year ago

2.0.39

1 year ago

2.0.38

1 year ago

2.0.37

1 year ago

2.0.36

1 year ago

2.0.35

1 year ago

2.0.34

1 year ago

2.0.33

1 year ago

2.0.32

1 year ago

2.0.31

1 year ago

2.0.30

1 year ago

2.0.29

1 year ago

2.0.28

1 year ago

2.0.27

1 year ago

2.0.26

1 year ago

2.0.24

1 year ago

2.0.8

1 year ago

2.0.7

1 year ago

2.0.3

1 year ago

2.0.0

1 year ago

1.0.0

1 year ago

0.2.0

1 year ago