margelo / margelo/react-native-vision-camera

✨ Freeze Preview

Open
#4,103 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

✨ feature
Dominant language
TypeScript
Stars
9.6k
Forks
1.4k
Avg merge
1d 28m
Merged PRs (30d)
4

Description

Prerequisites
What problem are you trying to solve?

Would be cool if we can freeze the Preview on demand.

Proposed API / solution
const preview = ...
await preview.pause()
await preview.resume()
Alternatives considered

Snapshot but that's Android only

Platforms this should target

Both

Would you be willing to contribute this?

Yes — I'd like to open a PR.

Additional context
Submission
  • I described the problem, not just the solution.
  • I wrote this request in my own words. I did not paste AI-generated proposals.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Preview API and the linked AVFoundation AVCaptureConnection.isEnabled reference, then trace the existing Preview behavior on both target platforms. Done means pause() and resume() are available through the proposed async API and freeze or resume the Preview on both iOS and Android.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native, typescript
Domain
mobile-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.