Skip to content
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

Open
halileohalilei opened this issue Feb 6, 2018 · 4 comments
Open

Support for torch state checking #6

halileohalilei opened this issue Feb 6, 2018 · 4 comments

Comments

@halileohalilei
Copy link

The AVCaptureDevice API on iOS has a couple of methods like isTorchAvailable, isTorchActive and hasTorch 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.

@OlivierFreyssinet-old
Copy link

@oguennec
Copy link
Contributor

@ludo, @OlivierFreyssinet and @halileohalilei , I have submitted this PR which adds a Torch getStatus functionality as requested in this thread.

@elrhomariyounes
Copy link

elrhomariyounes commented May 27, 2020

Please merge the @oguennec PR

@saberothmane
Copy link

@oguennec PR needed to merge please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants
@halileohalilei @oguennec @OlivierFreyssinet-old @saberothmane @elrhomariyounes and others