-
Notifications
You must be signed in to change notification settings - Fork 27
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
Support for torch state checking #6
Comments
It would also be great to have support for something like |
@ludo, @OlivierFreyssinet and @halileohalilei , I have submitted this PR which adds a Torch getStatus functionality as requested in this thread. |
Please merge the @oguennec PR |
@oguennec PR needed to merge please |
The
AVCaptureDevice
API on iOS has a couple of methods likeisTorchAvailable
,isTorchActive
andhasTorch
for handling the torch. I haven't checked but I'm sure Android also has methods like these. It would be nice to see these methods implemented in react-native-torch, so that there would be no need for extra bridging to get the torch state from the native side.The text was updated successfully, but these errors were encountered: