From 3850270ed39f69feaa2da596b4ce497f625ea5a6 Mon Sep 17 00:00:00 2001 From: Victor Eronmosele Date: Thu, 5 Feb 2026 12:08:57 +0100 Subject: [PATCH 1/2] refactor: move flash button out of camera focus gesture detector --- .../step/IOURequestStepScan/index.native.tsx | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/src/pages/iou/request/step/IOURequestStepScan/index.native.tsx b/src/pages/iou/request/step/IOURequestStepScan/index.native.tsx index 4da2e4d5a552..367d0040eb11 100644 --- a/src/pages/iou/request/step/IOURequestStepScan/index.native.tsx +++ b/src/pages/iou/request/step/IOURequestStepScan/index.native.tsx @@ -643,29 +643,29 @@ function IOURequestStepScan({ onLayout={(e) => (viewfinderLayout.current = e.nativeEvent.layout)} /> - {canUseMultiScan ? ( - - setFlash((prevFlash) => !prevFlash)} - > - - - - ) : null} + {canUseMultiScan ? ( + + setFlash((prevFlash) => !prevFlash)} + > + + + + ) : null} )} From adfdf04c1322fcd45a66c1f7bf7c5fd38f9cc974 Mon Sep 17 00:00:00 2001 From: Victor Eronmosele Date: Thu, 5 Feb 2026 20:58:14 +0100 Subject: [PATCH 2/2] feat: add sentryLabel props to Pressable components in IOURequestStepScan --- src/CONST/index.ts | 6 ++++++ .../iou/request/step/IOURequestStepScan/index.native.tsx | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/src/CONST/index.ts b/src/CONST/index.ts index c65871151723..b3d4f56db63c 100755 --- a/src/CONST/index.ts +++ b/src/CONST/index.ts @@ -8063,6 +8063,12 @@ const CONST = { DOWNLOAD_RECEIPT: 'ReceiptModal-DownloadReceipt', DELETE_RECEIPT: 'ReceiptModal-DeleteReceipt', }, + IOU_REQUEST_STEP_SCAN: { + FLASH_BUTTON: 'IOURequestStepScan-FlashButton', + GALLERY_BUTTON: 'IOURequestStepScan-GalleryButton', + SHUTTER_BUTTON: 'IOURequestStepScan-ShutterButton', + MULTI_SCAN_BUTTON: 'IOURequestStepScan-MultiScanButton', + }, HEADER_VIEW: { BACK_BUTTON: 'HeaderView-BackButton', DETAILS_BUTTON: 'HeaderView-DetailsButton', diff --git a/src/pages/iou/request/step/IOURequestStepScan/index.native.tsx b/src/pages/iou/request/step/IOURequestStepScan/index.native.tsx index 367d0040eb11..b4184c0373d3 100644 --- a/src/pages/iou/request/step/IOURequestStepScan/index.native.tsx +++ b/src/pages/iou/request/step/IOURequestStepScan/index.native.tsx @@ -654,6 +654,7 @@ function IOURequestStepScan({ setFlash((prevFlash) => !prevFlash)} > @@ -695,6 +696,7 @@ function IOURequestStepScan({ { openPicker({ @@ -719,6 +721,7 @@ function IOURequestStepScan({ @@ -734,6 +737,7 @@ function IOURequestStepScan({ accessibilityRole="button" role={CONST.ROLE.BUTTON} accessibilityLabel={translate('receipt.multiScan')} + sentryLabel={CONST.SENTRY_LABEL.IOU_REQUEST_STEP_SCAN.MULTI_SCAN_BUTTON} style={styles.alignItemsEnd} onPress={toggleMultiScan} > @@ -748,6 +752,7 @@ function IOURequestStepScan({ setFlash((prevFlash) => !prevFlash)}