Open DavidRojas1612 opened 3 years ago
torch props are working fine. It will only work if flashlight or torch is available in device otherwise not.
Hello @sksurendrakmr, do you know of any examples where the react-qr-barcode-scanner
is opened and the flashlight is on? If that's the case, can you please provide one? Thanks in advance!
I had the same problem when I tried to set the value to true directly, to work around the problem you have to use a state variable and add a timeout: setTimeout(()=>{setTorchOn(!torchOn)}, 1500 );
I can't get the torch to work on an IPhone 13 nor 14. We're setting the torch property similarly to what @DavidRojas1612 wrote above
I can't get the torch to work on an IPhone 13 nor 14. We're setting the torch property similarly to what @DavidRojas1612 wrote above
On my iphone 13 the torch has no effect, but facingMode it is working
Also cannot get torch to work on iPhone 13.
I had the same problem when I tried to set the value to true directly, to work around the problem you have to use a state variable and add a timeout: setTimeout(()=>{setTorchOn(!torchOn)}, 1500 );
Can you provide a bit more sample code of how you did this, please?
I am trying to use the torch prop in my implementation, but I can't get this to work,