From 6d714a51f120945ae2002cbe5bb3a0896f727555 Mon Sep 17 00:00:00 2001 From: Aswin S Date: Thu, 8 Feb 2024 19:58:06 +0530 Subject: [PATCH] fix: camera doesn't load iou scan screen --- .../IOURequestStepScan/NavigationAwareCamera/index.native.js | 1 + src/pages/iou/request/step/IOURequestStepScan/index.native.js | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/iou/request/step/IOURequestStepScan/NavigationAwareCamera/index.native.js b/src/pages/iou/request/step/IOURequestStepScan/NavigationAwareCamera/index.native.js index 65c17d3cb7ab..049afe621167 100644 --- a/src/pages/iou/request/step/IOURequestStepScan/NavigationAwareCamera/index.native.js +++ b/src/pages/iou/request/step/IOURequestStepScan/NavigationAwareCamera/index.native.js @@ -18,6 +18,7 @@ const NavigationAwareCamera = React.forwardRef(({cameraTabIndex, ...props}, ref) // eslint-disable-next-line react/jsx-props-no-spreading {...props} isActive={isCameraActive} + photo={isCameraActive} /> ); }); diff --git a/src/pages/iou/request/step/IOURequestStepScan/index.native.js b/src/pages/iou/request/step/IOURequestStepScan/index.native.js index a1a3ed946967..8da496f342bc 100644 --- a/src/pages/iou/request/step/IOURequestStepScan/index.native.js +++ b/src/pages/iou/request/step/IOURequestStepScan/index.native.js @@ -300,7 +300,6 @@ function IOURequestStepScan({ device={device} style={[styles.flex1]} zoom={device.neutralZoom} - photo cameraTabIndex={1} orientation="portrait" />