react-qr-code icon indicating copy to clipboard operation
react-qr-code copied to clipboard

QR not working when Android device activate Darkmode

Open idindrakusuma opened this issue 4 years ago • 3 comments

Hi @rosskhanas Thank you for your hard work in making this awesome package. I'm already used this package for more than 6 months now. But, I have some reports from my users about this QR. This QR Not work as usual when user activates dark mode in several android devices.

I'm already changed the fgColor, try to revert the other color but still same. You can see the result like image below: photo_2021-12-19 08 26 30

idindrakusuma avatar Dec 19 '21 01:12 idindrakusuma

I'm use this device:

  • Xiaomi Redmi Note 8
  • Google Chrome

idindrakusuma avatar Dec 19 '21 01:12 idindrakusuma

How are you activating dark mode @idindrakusuma ? I think this issue is caused by Chrome's dark mode implementation, which is still behind an experimental flag. It seems that if you don't have a dark mode style-sheet, it uses a custom shader. Does it still happen in the latest version of chrome? If so, it would be worth looking at the Chromium bug tracker and maybe reporting it there.

lukesdm avatar Mar 16 '22 10:03 lukesdm

Screenshot 2022-05-20 at 09 59 15 @idindrakusuma I have faced the same problem, and find out that it can be solved by the adding additional setting "bgColor". The most interesting thing that it does not work with black color, but works with others Screenshot 2022-05-20 at 10 01 54 Screenshot 2022-05-20 at 10 02 32

Neffes1987 avatar May 20 '22 07:05 Neffes1987

Looks like not a bug on this lib? Can be closed?

rosskhanas avatar Sep 29 '22 16:09 rosskhanas