Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Barcode types and data returns undefined #482

Open
muhammadali1472 opened this issue Aug 11, 2022 · 1 comment
Open

Barcode types and data returns undefined #482

muhammadali1472 opened this issue Aug 11, 2022 · 1 comment

Comments

@muhammadali1472
Copy link

Describe the bug
When I try to get barcode type and data it returns undefined.
To Reproduce
Steps to reproduce the behavior:

  const [scanned, setScanned] = useState(false);
  const handleBarCodeScanned = ({ type, data }) => {
    console.log('Type: ' + type + '\nData: ' + data)
  };

 <CameraScreen
        scanBarcode={true}
         onReadCode={scanned ? undefined : handleBarCodeScanned}
          showFrame={true}
          laserColor="red"
          frameColor="white"
          />
  {scanned && <Button title={'Scan again?'} onPress={() => setScanned(false)} />}

Expected behavior
should return barcode type and barcode itself

@android-imdad
Copy link
Contributor

#633

I have added codeFormat please test and let know if any issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants