react-native-custom-qr-codes icon indicating copy to clipboard operation
react-native-custom-qr-codes copied to clipboard

Don't work with logo

Open boygiandi opened this issue 6 years ago • 2 comments

I can't scan this code : https://imgur.com/a/IK6rujf If I generate code without logo, it works fine : https://imgur.com/a/rJ9bMTW

boygiandi avatar Feb 19 '19 08:02 boygiandi

Hi @boygiandi - try changing the ecl attribute to a higher error correction level (can read about that here).

e.g. <QRCode ecl='H' logo={require('./dab.png')} />

This is documented in the README.md.

nating avatar Feb 27 '19 21:02 nating

@nating I have that exact same thing happening here, tried ECL L, Q, M and H.

<QRCode content='https://reactnative.com' logo={myLocalLogo} ecl='H'/>

My iPhone XS Max does not pick them up, but it does pick up on the ones on the README.md. Is there anything else I can try to get this to work? I'm using a small logo in a white background, size of 200x200.

Is there a recommended size? Is it better to use a JPG or PNG?

mikerodham avatar Sep 04 '19 13:09 mikerodham