Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add isMirrored prop #3036

Merged
merged 7 commits into from
Jul 2, 2024
Merged

feat: Add isMirrored prop #3036

merged 7 commits into from
Jul 2, 2024

Conversation

mrousavy
Copy link
Owner

@mrousavy mrousavy commented Jul 2, 2024

What

Introduces a new prop: isMirrored.

When isMirrored is true, the photo, video and snapshots captured with VisionCamera will be mirrored alongside the vertical axis (aka left/right flipped, or "mirrored").

If it is false, no mirroring will happen.

To avoid dizzyness for users, the Preview will always be mirrored in the front Camera, but not in the back Camera. This is the same behaviour as in the native iOS Camera app.

By default, it is true for the front Camera, and false for any other Camera.

Changes

Tested on

Related issues

Copy link

vercel bot commented Jul 2, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-native-vision-camera ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 2, 2024 10:40am

@mrousavy mrousavy merged commit e1f457e into main Jul 2, 2024
13 checks passed
@mrousavy mrousavy deleted the feat/is-mirrored branch July 2, 2024 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment