Update RCTCameraManager.m

This commit is contained in:
Jannik Sommerfeld 2016-04-09 02:51:43 +02:00 committed by Zack Story
parent b97e153ec9
commit 301620ef90
No known key found for this signature in database
GPG Key ID: 9057E38B6937BF11
1 changed files with 1 additions and 1 deletions

View File

@ -744,7 +744,7 @@ didFinishRecordingToOutputFileAtURL:(NSURL *)outputFileURL
for (AVMetadataMachineReadableCodeObject *metadata in metadataObjects) {
for (id barcodeType in [self getBarCodeTypes]) {
if (metadata.type == barcodeType) {
if ([metadata.type isEqualToString:barcodeType]) {
// Transform the meta-data coordinates to screen coords
AVMetadataMachineReadableCodeObject *transformed = (AVMetadataMachineReadableCodeObject *)[_previewLayer transformedMetadataObjectForMetadataObject:metadata];