Skip to content

feat: Add support for passing declarative position to Camera Device configuration#4057

Merged
mrousavy merged 12 commits into
mainfrom
feat/support-declarative-position
Jul 1, 2026
Merged

feat: Add support for passing declarative position to Camera Device configuration#4057
mrousavy merged 12 commits into
mainfrom
feat/support-declarative-position

Conversation

@mrousavy

Copy link
Copy Markdown
Owner

Adds native support to passing a CameraPosition to session.configure([{ input: ..., ... }]).

This allows skipping CameraDeviceFactory entirely, and avoids a race condition where the devices haven't loaded yet but the user wants to display a Camera via the declarative API (so not useCameraDevice(...)).

@vercel

vercel Bot commented Jun 30, 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 Jul 1, 2026 10:36am

Request Review

* fix: Resolve connections upfront

* WIP

* ughhhh

* rename

* Resolve for input

* Update HybridCameraSession.swift

* Restructure ResolvedCameraSessionConnection to map 1:1

* uhm?

* Update HybridCameraController.swift

* it builds

* custom config type ig

* Move out

* extract

* chore: Lint

* remove dead code

* impl android hihi

* Update ResolvableConstraint+AVAutoFocusSystem.swift

* Update CameraSessionConnection+getCameraInfo.kt
@mrousavy mrousavy merged commit be75cce into main Jul 1, 2026
4 of 5 checks passed
@mrousavy mrousavy deleted the feat/support-declarative-position branch July 1, 2026 10:35
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