I am trying to toggle the flaslight from my react-native export app. This Plugin does not work since I am using expo.
The flashMode property of the Expo Camera Component allows me to toggle the flash while taking a photo.
Is there a way to toggle the flashlight in another way?
CodePudding user response:
I ran into this same problem with expo
. What I did was expo ejected and then used this library to toggle the flash light (https://www.npmjs.com/package/react-native-torch). Then everything worked as it should