refactor: move flash button out of camera focus gesture detector - #81509
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
@abzokhattab Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
@victoreronmosele eslint pipeline is failing ... also can you please ensure that ios native is also fixed ? |
|
On it. |
|
is there any updates on this @victoreronmosele? |
|
Resolving the merge conflicts. |
…ra-focus-on-flash-tap
|
@abzokhattab Sorry for the delay, I was trying to get a physical iOS device to test with since camera functions don't work on the iOS simulator. I wasn't able to verify that, unfortunately. However, this change will work the same way on iOS since it's implemented in the Looking forward to your feedback. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppBefore: ScreenRecording_02-15-2026.23-22-01_1.MP4After: ScreenRecording_02-15-2026.23-21-11_1.MP4iOS: mWeb SafariMacOS: Chrome / Safari |
abzokhattab
left a comment
There was a problem hiding this comment.
No worries yes i know testing it on physical ios would require a paid apple developer account...
i verfied that with my physical device and the changes looks good on ios as well
LGTM
|
🚧 @MonilBhavsar has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/MonilBhavsar in version: 9.3.21-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.3.21-4 🚀
|
Explanation of Change
This PR ensures the the camera focus is not affected by taps to the flash button.
This is done by moving the flash button out of the camera's gesture detector view.
Fixed Issues
$ #80082
PROPOSAL: #80082 (comment)
Tests
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Same as tests.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Expensify.Fix.For.Camera.Focus.And.Flash.Button.mp4
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari