cssivision / react-native-qrcode

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

Failling to reload QRCode with big URLs #51

Open pedrobertao opened 6 years ago

pedrobertao commented 6 years ago

When dynamically resetting the value for the QRCode, it fails when the value string is too big. Example: First I have this: https://www.foo.io/big-foo/#/send?to=XXXXXXXXXXXXXXXXXXXXXX QRCode loads correctly.

Then I update the value to get something like https://www.foo.io/big-foo/#/send?to=YYYYYYYYYYYYYYYYYYYYYY QRCode doesn't reload.

Workaround: Clear value (set value to ' ' i.e.) and then set the new value. It doesn't work if I simply replace the new value with the old one.

asd8855 commented 5 years ago

How to solve this problem?

asd8855 commented 5 years ago

I solved this problem,by change the QR background color! For example, bgColor #000 to #333