teslamotors / react-native-camera-kit

A high performance, easy to use, rock solid camera library for React Native apps.
MIT License
2.42k stars 577 forks source link

How to capture the image when scanning barcode #619

Closed faizanbutt closed 7 months ago

faizanbutt commented 7 months ago

I was looking for a feature that should return me the image which the CameraScreen used for scanning the barcode.

I am getting the codeStringValue by using onReadCode method of the CameraScreen but could not find anything about the feature that I stated above.

Describe alternatives you've considered I have searched in the event that is returned by the onReadCode method: onReadCode={(event) => {console.log('event', event)}} But nothing like an image is found there.

faizanbutt commented 7 months ago

@scarlac Can you look into this please ?

scarlac commented 7 months ago

Call .capture() on the camera reference when the trigger event happens.