-
Notifications
You must be signed in to change notification settings - Fork 590
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
torchMode={"on"} does not work on startup (iOS) #593
Comments
Ever find a solution for this? I am having this problem |
Check out this issue: #518 The work around was great for me. |
I use a similar workaround, as you mentioned. I'm quite certain that this is also related to a timing issue, possibly appeared with the introduction of support for dual cameras. I attempted to address it, but so far, I haven't been successful in resolving the issue. Once I manage to fix it, I'll submit a pull request, but I'm not actively working on this bug at the moment. |
Just played around a little bit, when removing this line:
Everything works great on my iPhone 14 Pro. I can not retrace what causes the bug, but it seems that the reapply of the configuration (comment in line above) is not necessary (any more?) - can you confirm other devices? |
Describe the bug
see title, sometimes the light flashes half a second but then stays off. using a button as switch works great.
To Reproduce
set torchMode={"on"} on iOS 17.0.2 (iPhone 14 pro)
Expected behavior
light goes on and stays on
Additional context
using 14.0.0-beta11 for dual back camera, maybe here is the problem?
The text was updated successfully, but these errors were encountered: