react-native-torch icon indicating copy to clipboard operation
react-native-torch copied to clipboard

it dont work when camera is turned on

Open zhllucky opened this issue 5 years ago • 5 comments

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

zhllucky avatar Jun 24 '19 01:06 zhllucky

I have same issue

TeruyaHaroldo avatar Jul 03 '19 17:07 TeruyaHaroldo

@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.

AKACC avatar Jul 16 '19 01:07 AKACC

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 ?

Cchumi avatar Sep 18 '19 07:09 Cchumi

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?

erick94isc avatar Oct 25 '21 15:10 erick94isc

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}

AKACC avatar Oct 25 '21 17:10 AKACC