Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

🐛 [iPhone Duo] Cameras are rotated 90° clockwise when using the camera on the inner display

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

Maintainers usually reply within 1 day

@ismaelsousa is already working on this.

Since Oct 18, 2026.

  • #4224 by @ismaelsousa — open
  • #4237 by @Jakef14 — open

Assessment

Difficulty
4/5
Estimated time
1-2 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
ios, react-native, typescript

Research direction

Start with the linked reproduction at commit afc9d0c and follow the preview and switch camera button behavior when the iPhone Duo unfolds and rotates. The report identifies the affected setup as iOS device, VisionCamera 5.2.3, and React Native 0.85.3, but names no project files or tests. Done means the preview and switch camera button orientation match the device on both displays.

Written by the indexing model from the issue text.

Description

🐛 bug
Prerequisites
Reproduction

https://github.com/Jakef14/react-native-vision-camera

Steps to reproduce
  1. Clone the repo https://github.com/Jakef14/react-native-vision-camera
  2. Checkout to commit afc9d0c
  3. Run bun bootstrap to prepare the example app
  4. Run bun example start to start metro for the example app in the repo
  5. In Xcode 27, build and install the application on an iPhone Duo
  6. After the application installs and launches, observe the outer display has the correct rotation
  7. Open the device (unfold)
  8. Notice the orientation is still correct on the inner display
  9. Rotate the phone
  10. Notice the orientation of the preview no longer matches the orientation of the device (90° rotation)
  11. Close the application from the inner display
  12. Open the application from the inner display
  13. Notice the preview is still rotated 90° clockwise
What did you expect to happen?

I would expect the preview orientation to match the orientation of the device no matter the orientation the application is opened from. This includes iPad-style screens, like the iPhone Duo, that allows for window rotation.

What actually happened?

When using any camera on the inner display on the iPhone Duo, the preview is rotated 90° clockwise. When rotating the phone, the application window rotates and matches the orientation of the device, but the preview and switch camera button continues to maintain that 90° rotation from the device orientation

Affected platforms

iOS (device)

Device(s) affected

iPhone Duo, iOS 27.0.1-27.2

VisionCamera version

5.2.3

React Native version

0.85.3

React Native architecture

New Architecture (Fabric / bridgeless)

Features being used
  • Preview
  • Photo capture
  • Video capture
  • Frame Processors (worklets)
  • Skia Frame Processors
  • Code/Barcode Scanner
  • Location metadata
  • Multi-cam
  • Depth data
  • HDR / custom dynamic range
  • Custom format / FPS / resolution
Relevant logs / stack trace
N/A
Additional context
Image Image
Submission
  • The reproduction I linked is either (preferred) a PR against this repo that adds a failing harness test following the harness-tests README, or (fallback) a public repo that reproduces the bug on a fresh clone. I understand the issue will be closed without one.
  • I pasted logs as text (not screenshots).
  • I wrote this report in my own words. I did not paste AI-generated descriptions of the bug.
Dominant language
TypeScript
Stars
9.7k
Forks
1.4k
Avg merge
16h 53m
Merged PRs (30d)
1

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from margelo/react-native-vision-camera

All issues in margelo/react-native-vision-camera

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.