Toggle Flashlight with react-native (expo)


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?


I ran into this same problem with expo. What I did was expo ejected and then used this library to toggle the flash light ( Then everything worked as it should

Answered By – carlosdafield

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published