Skip to content

Commit

Permalink
Ignore warning on android
Browse files Browse the repository at this point in the history
  • Loading branch information
janicduplessis committed Feb 1, 2024
1 parent 075907e commit 3fb005d
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,12 @@ function IOURequestStepScan({
return;
}

camera.current.focus(point);
camera.current.focus(point).catch((ex) => {
if (ex.message === '[unknown/unknown] Cancelled by another startFocusAndMetering()') {
return;
}
Log.warn('Error focusing camera', ex);
});
};

const tapGesture = Gesture.Tap()
Expand Down

0 comments on commit 3fb005d

Please sign in to comment.