cssivision / react-native-qrcode

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

re-render canvas after 300ms to fix a bug on android where it stayed blank sometimes #59

Open rbravo opened 6 years ago

rbravo commented 6 years ago

I had a QRCode on a Modal and a few times when opening the modal the Canvas stayed blank. So I called the draw method on the canvas again for it to repaint after 300ms, and it fixed the bug on android. Now everytime the QRCode shows up it paints (instantly or after 300ms). Not the best fix in the world but it solves the problem =)

yqbk commented 6 years ago

Any update on that? For me, it also doesn't work sometimes. But the fix seems to not always be working as well.