Skip to content

fix: Fix iOS <15 crash in photo capture (isHighResolutionPhotoEnabled)#3836

Merged
mrousavy merged 1 commit intomainfrom
fix/avoid-photo-high-res-crash-ios-15
May 5, 2026
Merged

fix: Fix iOS <15 crash in photo capture (isHighResolutionPhotoEnabled)#3836
mrousavy merged 1 commit intomainfrom
fix/avoid-photo-high-res-crash-ios-15

Conversation

@mrousavy
Copy link
Copy Markdown
Owner

@mrousavy mrousavy commented May 5, 2026

Fixes a crash on iOS <=15 devices where isHighResolutionPhotoEnabled = true was set for a photo request, but isHighResolutionCaptureEnabled was NOT enabled on the photo output itself.

One other fix could've been to simply always enable it, like in #3827 - but I thought about it and iOS <=15 has a very small market share anyways and the reduced branching/test matrix might make things simpler - for the future we work with dimensions, not a simple boolean flag anyways.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 5, 2026

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 May 5, 2026 8:55am

Request Review

@mrousavy mrousavy merged commit 174d2ed into main May 5, 2026
6 of 7 checks passed
@mrousavy mrousavy deleted the fix/avoid-photo-high-res-crash-ios-15 branch May 5, 2026 08:59
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