Skip to content

Support for torch state checking #6

@halileohalilei

Description

@halileohalilei

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions