react-native-torch
react-native-torch copied to clipboard
it dont work when camera is turned on
When the camera is turned on. it does not work on android ,but can work on ios. can you help me?
I have same issue
@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.
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 ?
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?
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}