Skip to content

Flash Light not working  #518

@avneeshkumar1

Description

@avneeshkumar1

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions