Skip to content
This repository has been archived by the owner on Mar 28, 2022. It is now read-only.

Not able to pass facingMode to BarcodeScannerComponent #15

Open
jaas0301 opened this issue Mar 16, 2021 · 1 comment
Open

Not able to pass facingMode to BarcodeScannerComponent #15

jaas0301 opened this issue Mar 16, 2021 · 1 comment

Comments

@jaas0301
Copy link

I am trying to pass in facingMode option to the Barcode Scanner Component and it seems to not honor the value.

This is what I have tried so far:

<BarcodeScannerComponent width={420} height={420} onUpdate={(err, result) => { ... }} videoConstraints={{ facingMode: 'user' }} />

Can someone suggest what is wrong here?

@ajaypillay
Copy link

According to what's in BarcodeScannerComponent.tsx it appears that facingMode is hardcoded to environment as it hasn't been configured in a way that it accepts a parent argument.

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

No branches or pull requests

2 participants