question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can the dimensions of the camera scanner become smaller when in a smaller View?

See original GitHub issue

I have added the QRCodeScanner inside a View which is around 1/3 of the page height (and almost 100% of the page width).

I noticed that the marker is still large and that the detection of the QR is better on a corner than in the middle. Also the scanner requires more space and makes the ScrollView have a scrollbar.

I added width, height props to cameraStyle, is this the correct approach? The marker is still very large (part of it shows out of the view). Is the QR detection depended on that?

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:5
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
imvvcommented, Oct 3, 2018

I’m struggling with this too, added height and width to cameraStyle but it seems to do nothing, it’s still overly large and covering other content outside of the view it’s in.

3reactions
rszalskicommented, Apr 29, 2019

After having various sizing/styling issues with this package, I switched to https://github.com/react-native-community/react-native-camera which also supports (qr|bar)code scanning. Might be worth a try @YogeshYo .

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to reduce the size of scanned images in Preview - CNET
If you have previously scanned documents that you would like to reduce in size, open them with Preview and then save them as...
Read more >
How to decrease the file size of scanned document in Control ...
Are your files too large when you scan them? Here's some easy instructions on how to make the file size small on our...
Read more >
Understanding 3D Scanners: Field of View Explained and ...
A 3D scanner that uses two cameras produces more reliable and accurate 3D measurements compared to a 3D scanner that uses only one...
Read more >
Sample Scans - Understanding Image Quality vs. File Size
Sample Document - demonstrates color and smaller print, Color and gray images saved JPEG, ... Balancing image quality to file size can be...
Read more >
Scan a document or image in Preview on Mac - Apple Support
You can scan several smaller images at once, save each image in its own file, and straighten any images that were crooked on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found