Closed
Labels
Awaiting PaymentAuto-added when associated PR is deployed to productionInternalRequires API changes or must be handled by Expensify staffNewFeatureSomething to build that is a new item.WeeklyKSv2
Description
Problem
When a user captures a receipt photo, if they press the shutter button, then the confirmation screen takes ~726-1000ms to appear, creating a laggy, unresponsive feel.
The primary bottleneck is cropImageToAspectRatio() which:
- Calls
ImageSize.getSize()to read image dimensions - Runs
expo-image-manipulator.manipulateAsync()to crop the photo to match the viewfinder aspect ratio - Calls
RNFetchBlob.fs.stat()to get the cropped file's size
Secondary UX issues:
- Upload directory is created at photo capture time rather than earlier
- Camera continues showing live video after capture, creating a disconnected feeling during navigation
Solution
Reduce latency by eliminating unnecessary async operations and improving perceived responsiveness.
- Skip cropping entirely by using
useCameraFormat()from react-native-vision-camera to match the camera format to the viewfinder aspect ratio upfront - Skip
ImageSize.getSize()by passing photo dimensions directly from thetakePhoto()result - Create the upload directory when opening the camera page instead of at capture time (40 ms improvement)
- Freeze the camera image on capture using the
forceInactiveprop to prevent the live video continuing after the shot - Add a pronounced shutter feedback effect (similar to the multi-capture blink) to make the capture moment feel more responsive
Issue Owner
Current Issue Owner: @huultMetadata
Metadata
Labels
Awaiting PaymentAuto-added when associated PR is deployed to productionInternalRequires API changes or must be handled by Expensify staffNewFeatureSomething to build that is a new item.WeeklyKSv2
Activity
melvin-bot commentedon Feb 25, 2026
Triggered auto assignment to @JmillsExpensify (
NewFeature), see https://stackoverflowteams.com/c/expensify/questions/14418#:~:text=BugZero%20process%20steps%20for%20feature%20requests for more details. Please add this Feature request to a GH project, as outlined in the SO. Remember to draft any necessary HelpDot updates by following the instructions here.melvin-bot commentedon Feb 25, 2026
Triggered auto assignment to Design team member for new feature review - @dubielzyk-expensify (
NewFeature)marcaaron commentedon Feb 25, 2026
@JmillsExpensify @dubielzyk-expensify was thinking we could use the
appBGfor the "blink" effect, but let me know if you guys have other thoughts on this...ScreenRecording_02-25-2026.08-59-39_1.mov
Note: This video was also taken without the performance improvements mentioned in the issue description and will be a lot smoother once those are added.
marcaaron commentedon Feb 25, 2026
For reference the blink effect we currently have for multi-scan looks like this (which is a bit more subtle than what I posted above):
ScreenRecording_02-25-2026.10-22-36_1.MP4
I have a slight preference for the longer blink - but care more about there being a blink for this flow.
JmillsExpensify commentedon Feb 25, 2026
I also have a slight preference for the longer blink. And the blink itself looks fine to me.
dubielzyk-expensify commentedon Feb 27, 2026
I'm fine with either. The previous one was mostly done to be a bit subtle, but if people prefer the others, then go for it
JmillsExpensify commentedon Feb 27, 2026
Longer blink then? Let's get this shipped.
4 remaining items
[-]Optimize camera receipt capture flow to reduce shutter-to-confirmation latency[/-][+][Due for payment 2026-03-13] Optimize camera receipt capture flow to reduce shutter-to-confirmation latency[/+]melvin-bot commentedon Mar 6, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.3.31-12 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-03-13. 🎊
melvin-bot commentedon Mar 6, 2026
BugZero Checklist: The PR adding this new feature has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
melvin-bot commentedon Mar 6, 2026
Current assignee @JmillsExpensify is eligible for the Awaiting Payment assigner, not assigning anyone new.
JmillsExpensify commentedon Mar 9, 2026
No payouts on this one, so closing.
huult commentedon Mar 13, 2026
@JmillsExpensify @stephanieelliott I reviewed this PR. Could you help create a payment summary?
JmillsExpensify commentedon Mar 13, 2026
Payment summary: $250 @huult via New Expensify
garrettmknight commentedon Mar 25, 2026
$250 approved for @huult