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

QRCode - style is not applying and default qrcode is not fitting in center #93

Open
Qamarkh opened this issue Jun 17, 2020 · 3 comments

Comments

@Qamarkh
Copy link

Qamarkh commented Jun 17, 2020

Hello, I am able generate qrcode code successfully and getting scanned value also. Only issue is that QRcode component is not fitting in align center
QRCode

What is going I do not Know.Can someone help on this. "react-native": "~0.61.5", "react-native-qrcode": "github:wanxsb/react-native-qrcode#1a08f9cedcb747fd230be717fe815c686e4427cb", option 2 I have tried "react-native-qrcode-svg": "^6.0.6", "react-native-svg": "^12.1.0", But with library qrcode generating but is not scanning. Need urgent help Regards Qamar
@Qamarkh
Copy link
Author

Qamarkh commented Jun 21, 2020

Any update ,can some one help.

@RickameCua
Copy link

Screen Shot 2020-07-10 at 10 31 08 AM
Same issue for me too. It fixed itself after I changed react-native-qrcode2 ---> react-native-qrcode-svg with react-native-svg from the package.json and changed all to import QRCode from 'react-native-qrcode-svg'; instead of import QRCode from 'react-native-qrcode2';

@winionian
Copy link

Only to solve the size topic.In Project file go to ->node_modules/react-native-qrcode/QRcode.js -> in <Canvas Context ={{ }}> change size : ..... to size * 4 -> size will fit to view but it's still scroll.
Reference: https://stackoverflow.com/questions/63127992/react-native-qrcode-doesnt-fit-its-element

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

3 participants