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

fix#6 support for torch state checking #11

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

oguennec
Copy link
Contributor

This PR adds support for accessing the native torch mode (ON or OFF).

An initial torch switch from react-native is required to get the correct status of the Torch. Subsequent Torch mode switches (from anywhere) are well detected.

This method is currently only supported on Android >= 6.0 and on iOS (>= 8.0).

@TwFlem
Copy link

TwFlem commented Nov 7, 2018

Looks good to me.

@udaisshekhawat
Copy link

Hi @TwFlem

Can you please merge this change?
We need this change for our App.

Thanks.

@HunteRoi
Copy link

HunteRoi commented Apr 9, 2024

@oguennec have you released your version on NPM, since this package does not seem to be maintained anymore?

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

Successfully merging this pull request may close these issues.

4 participants