react-native-qrcode
react-native-qrcode copied to clipboard
re-render canvas after 300ms to fix a bug on android where it stayed blank sometimes
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 =)
Any update on that? For me, it also doesn't work sometimes. But the fix seems to not always be working as well.