react-native-qrcode
react-native-qrcode copied to clipboard
QRCode - style is not applying and default qrcode is not fitting in center
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
Any update ,can some one help.
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';
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