From 483307184f323858750683beadf66551e8dd321c Mon Sep 17 00:00:00 2001 From: kubabutkiewicz Date: Tue, 14 Oct 2025 13:02:25 +0200 Subject: [PATCH] refactor: removed key prop from camera to not remount it on every focus of the app --- src/pages/iou/request/step/IOURequestStepScan/index.native.tsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/pages/iou/request/step/IOURequestStepScan/index.native.tsx b/src/pages/iou/request/step/IOURequestStepScan/index.native.tsx index 7fd329362479..83b879baf8a4 100644 --- a/src/pages/iou/request/step/IOURequestStepScan/index.native.tsx +++ b/src/pages/iou/request/step/IOURequestStepScan/index.native.tsx @@ -130,7 +130,6 @@ function IOURequestStepScan({ const [cameraPermissionStatus, setCameraPermissionStatus] = useState(null); const [didCapturePhoto, setDidCapturePhoto] = useState(false); const [shouldShowMultiScanEducationalPopup, setShouldShowMultiScanEducationalPopup] = useState(false); - const [cameraKey, setCameraKey] = useState(0); const {shouldStartLocationPermissionFlow} = useIOUUtils(); const shouldGenerateTransactionThreadReport = !isBetaEnabled(CONST.BETAS.NO_OPTIMISTIC_TRANSACTION_THREADS) || !account?.shouldBlockTransactionThreadReportCreation; @@ -250,7 +249,6 @@ function IOURequestStepScan({ return; } - setCameraKey((prev) => prev + 1); refreshCameraPermissionStatus(); }); @@ -820,7 +818,6 @@ function IOURequestStepScan({