Hi @Sami Ullah can you help me please i am getting the same error
QRCodeScanner
ref={(node) => { this.scanner = node }}
onRead={(e) => {
setShowDialog(true)
setQrValue(e.data)
}}
flashMode={light ? RNCamera.Constants.FlashMode.torch : RNCamera.Constants.FlashMode.auto}
topContent={<></>}
bottomContent={
<Button
title={Flash ${light ? 'OFF' : 'ON'}
}
icon={{ ...styles.iconButtonHome, size: 20, name: 'qr-code-scanner' }}
iconContainerStyle={styles.iconButtonHomeContainer}
titleStyle={{ ...styles.titleButtonHome, fontSize: 20 }}
buttonStyle={{...styles.buttonHome, height: 50}}
containerStyle={{...styles.buttonHomeContainer, marginTop:20, marginBottom:10}}
// onPress={() => {this.scanner.reactivate()}}
onPress={() => {setLight(!light)}}
/>
}
/>