-
Notifications
You must be signed in to change notification settings - Fork 618
Description
Hi team thanks for this awesome library
I am using the below code for scan QR code
render() {
return (
<Camera
ref={this.camera}
style={{flex: 1}}
cameraType={CameraType.Back} // optional
flashMode="on" // on/off/auto(default)
focusMode="on" // off/on(default)
zoomMode="on" // off/on(default)
torchMode="off" // on/off(default)
ratioOverlay="1:1" // optional
ratioOverlayColor="#77" // optional
resetFocusTimeout={0}
resetFocusWhenMotionDetected={false}
saveToCameraRole={false} // iOS only
scanBarcode={true} // optional
showFrame={true} // Barcode only, optional
laserColor="red" // Barcode only, optional
frameColor="yellow" // Barcode only, optional
surfaceColor="blue" // Barcode only, optional
onReadCode={(event) => console.log(event.nativeEvent.codeStringValue)}
/>
);
}
Scanning is working fine
but flash light not working even pass torchMode="on" but still not working. can someone suggest me what is wrong with code.