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

it dont work when camera is turned on #20

Open
zhllucky opened this issue Jun 24, 2019 · 5 comments
Open

it dont work when camera is turned on #20

zhllucky opened this issue Jun 24, 2019 · 5 comments

Comments

@zhllucky
Copy link

When the camera is turned on. it does not work on android ,but can work on ios.
can you help me?

@TeruyaHaroldo
Copy link

I have same issue

@AKACC
Copy link

AKACC commented Jul 16, 2019

@TeruyaHaroldo @zhllucky Here is my solution for now:

 this.state.isCameraOn?RNCamera.Constants.FlashMode.torch : RNCamera.Constants.FlashMode.off

I use it when camera is on, using react native torch when is off.

@Cchumi
Copy link

Cchumi commented Sep 18, 2019

Hi same issue here but I don’t use rncamera library and don’t want to use it just for enabling torch.
Someone got a solution ?

@erick94isc
Copy link

Hi same issue here but I don’t use rncamera library and don’t want to use it just for enabling torch. Someone got a solution ?

Did you find any solution for that?

@AKACC
Copy link

AKACC commented Oct 25, 2021

Hi same issue here but I don’t use rncamera library and don’t want to use it just for enabling torch. Someone got a solution ?

Did you find any solution for that?

expo-camera works as well, similar syntax: flashMode={ this.state.isLightOn ? Camera.Constants.FlashMode.torch : Camera.Constants.FlashMode.off}

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
@TeruyaHaroldo @AKACC @erick94isc @zhllucky @Cchumi and others