Skip to content

Weex custom component for barcode scanner, based on ZXing

Notifications You must be signed in to change notification settings

ch-gilbert/weex-scanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

weex-scanner

Weex custom component for barcode scanner, based on ZXing Android Embedded

screenshot

<scanner>

Render a qrcode scanning view.

How to use

<scanner class="scanner" @decoded="handleResult"></scanner>
  • add listener on decoded event, to get the decoded value

    methods: {
      handleResult(e) {
        this.decodeResult = e.value;
      },
    }

Events

  • decoded

    When the qrcode is recognized, it will fire the decoded event.

    {
        value: 'decoded text'
    }

About

Weex custom component for barcode scanner, based on ZXing

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published