You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Due for payment 2026-04-30] Expense - When taking a photo to scan on landscape can't see the whole receipt #87305
Version Number: 9.3.54-0 Reproducible in staging?: Yes Reproducible in production?: N/A - new feature, doesn't exist in prod If this was caught during regression testing, add the test name, ID and link from BrowserStack:#85229 Email or phone of affected tester (no customers):gatahntm+6320@gmail.com Issue reported by: Applause Internal Team Bug source: Pull Request QA execution Device used: iPhone 12.mini, iOS 16.7 App Component: Money Requests
Action Performed:
Launch the app and login with any account being on landscape mode
Tap on FAB or the plus icon inside a chat
Tap on Create expense
Switch to scan
Complete the flow to see the end image and compare to what was showing during taking it
Expected Result:
User can see the whole receipt when taking. a photo to scan on ladscape
Actual Result:
It's hard to make sure you take the correct photo of the receipt as only part of the photo that will be taken is shown
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
Identify the pull request that introduced this issue and revert it.
The camera viewfinder always uses a portrait aspect ratio (0.75) regardless of device orientation. At index.native.tsx:118, cameraAspectRatio is computed as format.photoHeight / format.photoWidth (3024/4032 = 0.75), which assumes portrait display.
getCameraViewfinderStyle then returns {aspectRatio: 0.75, minWidth: '100%', minHeight: '100%'}. In landscape on an iPhone 12 mini (~812×375), minHeight: '100%' fills the 375px height, and the 0.75 ratio constrains width to ~281px — only ~35% of screen width. The parent cameraView has overflow: 'hidden' + alignItemsCenter, clipping the preview to a narrow centered strip.
The isInLandscapeMode hook is already imported in this file but only used for the permission view, not for the camera viewfinder.
What changes do you think we should make in order to solve the problem?
Make cameraAspectRatio orientation-aware in index.native.tsx. When in landscape mode, invert the ratio to format.photoWidth / format.photoHeight (4032/3024 ≈ 1.33) so the viewfinder fills the wide screen correctly. The existing isInLandscapeMode hook is already available in the component — it just needs to be used when computing cameraAspectRatio.
What alternative solutions did you explore? (Optional)
Use flex: 1 in landscape instead of an explicit aspect ratio — simpler but could distort the preview or not match the actual capture area.
Make getCameraViewfinderStyle orientation-aware — would work but pushes orientation logic into a generic style utility, when it's better scoped to the scan component.
Next Steps for Contributor+ team: Reply with @MelvinBot implement this to create a draft PR, @MelvinBot <your feedback> to refine this analysis, or explain why you are rejecting Melvin's proposal.
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.3.61-4 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@truph01 The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
Activity
melvin-bot commentedon Apr 8, 2026
You have been assigned to this deploy blocker because you recently merged this PR: #85229
melvin-bot commentedon Apr 8, 2026
💬 A slack conversation has been started in #expensify-open-source
github-actions commentedon Apr 8, 2026
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
MelvinBot commentedon Apr 8, 2026
Proposal
What is the root cause of that problem?
The camera viewfinder always uses a portrait aspect ratio (0.75) regardless of device orientation. At
index.native.tsx:118,cameraAspectRatiois computed asformat.photoHeight / format.photoWidth(3024/4032 = 0.75), which assumes portrait display.getCameraViewfinderStylethen returns{aspectRatio: 0.75, minWidth: '100%', minHeight: '100%'}. In landscape on an iPhone 12 mini (~812×375),minHeight: '100%'fills the 375px height, and the 0.75 ratio constrains width to ~281px — only ~35% of screen width. The parentcameraViewhasoverflow: 'hidden'+alignItemsCenter, clipping the preview to a narrow centered strip.The
isInLandscapeModehook is already imported in this file but only used for the permission view, not for the camera viewfinder.What changes do you think we should make in order to solve the problem?
Make
cameraAspectRatioorientation-aware inindex.native.tsx. When in landscape mode, invert the ratio toformat.photoWidth / format.photoHeight(4032/3024 ≈ 1.33) so the viewfinder fills the wide screen correctly. The existingisInLandscapeModehook is already available in the component — it just needs to be used when computingcameraAspectRatio.What alternative solutions did you explore? (Optional)
flex: 1in landscape instead of an explicit aspect ratio — simpler but could distort the preview or not match the actual capture area.getCameraViewfinderStyleorientation-aware — would work but pushes orientation logic into a generic style utility, when it's better scoped to the scan component.Next Steps for Contributor+ team: Reply with
@MelvinBot implement thisto create a draft PR,@MelvinBot <your feedback>to refine this analysis, or explain why you are rejecting Melvin's proposal.rushatgabhane commentedon Apr 8, 2026
I'd say this is not a blocker because landscape mode is a new feature. Let's fix it as a regular issue
24 remaining items
melvin-bot commentedon Apr 23, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.3.61-4 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2026-04-30. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Apr 23, 2026
@truph01 The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
melvin-bot commentedon Apr 28, 2026
@truph01 Huh... This is 4 days overdue. Who can take care of this?
GCyganek commentedon Apr 29, 2026
deployed to production
melvin-bot commentedon Apr 29, 2026
Triggered auto assignment to @mallenexpensify (
Awaiting Payment)melvin-bot commentedon Apr 29, 2026
Triggered auto assignment to @mallenexpensify (
Awaiting Payment)melvin-bot commentedon Apr 30, 2026
Payment Summary
Upwork Job
BugZero Checklist (@mallenexpensify)
mallenexpensify commentedon May 1, 2026
@truph01 Will be paid in