react-native-qrcode icon indicating copy to clipboard operation
react-native-qrcode copied to clipboard

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

Open rbravo opened this issue 6 years ago • 1 comments

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 =)

rbravo avatar Jun 28 '18 22:06 rbravo

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

yqbk avatar Sep 24 '18 15:09 yqbk