Skip to content

Commit d543c5c

Browse files
committed
fix crash in onFeaturesDetected
1 parent 6496926 commit d543c5c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ios/RCTARKit.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,10 +451,11 @@ - (void)session:(ARSession *)session didUpdateFrame:(ARFrame *)frame {
451451
}];
452452

453453
}
454-
454+
if(self.onFeaturesDetected) {
455455
self.onFeaturesDetected(@{
456456
@"featurePoints":featurePoints
457457
});
458+
}
458459
});
459460
}
460461
}

0 commit comments

Comments
 (0)