We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello! The height and width of the video does not match the height and width video on the device. Have styles component:
<QrReader scanDelay={500} onResult={handleScan} ViewFinder={scanOverlay} containerStyle={{ width: 300, height: 300, }} videoStyle={{width: 300, height: 300, border: 'solid', borderWidth: '4px', borderColor: qrData.length === 0 ? 'red' : 'green', }} constraints={{facingMode: 'environment'}} />
But video sizes are not 300x300. How to fix this?
mobile camera: desktop camera:
The text was updated successfully, but these errors were encountered:
answer: constraints={{ facingMode: 'environment', aspectRatio: { ideal: 1 } }}
Sorry, something went wrong.
No branches or pull requests
Hello!
The height and width of the video does not match the height and width video on the device.
Have styles component:
<QrReader
scanDelay={500}
onResult={handleScan}
ViewFinder={scanOverlay}
containerStyle={{ width: 300, height: 300, }}
videoStyle={{width: 300, height: 300, border: 'solid', borderWidth: '4px', borderColor: qrData.length === 0 ? 'red' : 'green', }}
constraints={{facingMode: 'environment'}}
/>
But video sizes are not 300x300. How to fix this?
mobile camera:
desktop camera:
The text was updated successfully, but these errors were encountered: