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

[ios][camera] Fix initial orientation #27545

Merged
merged 3 commits into from
Mar 10, 2024

Conversation

alanjhughes
Copy link
Collaborator

@alanjhughes alanjhughes commented Mar 9, 2024

Why

Closes #27218
In both versions of the package we were checking for the initial orientation too early. At a time when the video buffers were not yet connected.

How

Moved the call to correct the orientation after we have connected the inputs. Also fixed a number of other small warnings and removed dead code. I've backported the fix to old camera.

Test Plan

Bare-expo and provided repro.

@alanjhughes alanjhughes requested a review from tsapeta March 9, 2024 16:53
@expo-bot expo-bot added the bot: suggestions ExpoBot has some suggestions label Mar 9, 2024
@expo-bot
Copy link
Collaborator

expo-bot commented Mar 9, 2024

The Pull Request introduced fingerprint changes against the base commit: 433746c

Fingerprint diff
[
  {
    "type": "dir",
    "filePath": "../../packages/expo-camera/ios",
    "reasons": [
      "expoAutolinkingIos"
    ],
    "hash": "079f8487760665167da8899c283c46b30c1e532e"
  }
]

Generated by PR labeler 🤖

@expo-bot expo-bot added bot: passed checks ExpoBot has nothing to complain about and removed bot: suggestions ExpoBot has some suggestions labels Mar 9, 2024
@alanjhughes alanjhughes marked this pull request as ready for review March 9, 2024 17:01
@alanjhughes alanjhughes force-pushed the @alanhughes/camera/fix-initial-orientation branch from 822cac1 to 14a5c36 Compare March 10, 2024 14:09
@alanjhughes alanjhughes merged commit 98e6237 into main Mar 10, 2024
8 of 9 checks passed
@alanjhughes alanjhughes deleted the @alanhughes/camera/fix-initial-orientation branch March 10, 2024 14:47
@brentvatne brentvatne added the published Changes from the PR have been published to npm label Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: fingerprint changed bot: passed checks ExpoBot has nothing to complain about published Changes from the PR have been published to npm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Initial camera orientation is portrait even when device's orientation is landscape
4 participants