EddyVerbruggen / nativescript-plugin-firebase

:fire: NativeScript plugin for Firebase
https://firebase.google.com
MIT License
1.01k stars 444 forks source link

Can't get barcodes from live scan #1597

Closed HulioEglesias closed 4 years ago

HulioEglesias commented 4 years ago

I use Vue and this is my code: in template:

           <MLKitBarcodeScanner
              width="260"
              height="380"
              beepOnScan="true"
              formats="EAN_13"
              preferFrontCamera="false"
              supportInverseBarcodes="false"
              :torchOn="false"
              @scanResult="onScanResult">
          </MLKitBarcodeScanner>
methods: {
      onScanResult( result ) {
        // this.codeText = JSON.stringify(result);
        console.log('SCANNN')
        console.log(result.barcodes);
      }
    }

And in console I got undefined. How should I get a code?

HulioEglesias commented 4 years ago

Barcodes in result.value.barcodes