I have a simple qr-code reader app, and I wonder if can toogle the camera flashlight with a button.
const [torch, setTorch] = useState(false)
<BarCodeScanner
onBarCodeScanned={handleBarCodeScanned}
style={{width:'100%', height:'100%'}}
//Is there any flashlight modifier here?
/>
<Button title="turn on torch" onPress={()=>{setTorch(!torch)}}/>
Is this possible somehow?