Skip to content

fix: Fix getDefaultCamera('external') not returning external Cameras#4040

Merged
mrousavy merged 1 commit into
mainfrom
fix/get-default-external
Jun 24, 2026
Merged

fix: Fix getDefaultCamera('external') not returning external Cameras#4040
mrousavy merged 1 commit into
mainfrom
fix/get-default-external

Conversation

@mrousavy

Copy link
Copy Markdown
Owner

Previously 'external' mapped to 'unspecified', which caused getDefaultCamera('external') to just give you any Camera, often just the default built in back Camera.

Since external UVC cameras are not reflected on the .position for some reason but rather on .deviceType == .external, we add a specific path for this to make getDefaultCamera('external') actually work

@vercel

vercel Bot commented Jun 24, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
react-native-vision-camera-docs Ready Ready Preview, Comment Jun 24, 2026 9:21am

Request Review

@mrousavy mrousavy merged commit 98bcf42 into main Jun 24, 2026
6 of 8 checks passed
@mrousavy mrousavy deleted the fix/get-default-external branch June 24, 2026 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant