cssivision / react-native-qrcode

a minimalist qrcode component for react-native
MIT License
853 stars 304 forks source link

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

Open Qamarkh opened 4 years ago

Qamarkh commented 4 years ago

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 commented 4 years ago

Any update ,can some one help.

RickameCua commented 4 years ago

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 commented 3 years ago

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