From 937e6c24d420cbe89a9186a7e79810d72e17936d Mon Sep 17 00:00:00 2001 From: krishna2323 Date: Thu, 5 Sep 2024 12:01:05 +0530 Subject: [PATCH] add changes for android native. Signed-off-by: krishna2323 --- src/components/LocationPermissionModal/index.android.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/LocationPermissionModal/index.android.tsx b/src/components/LocationPermissionModal/index.android.tsx index 811537e00e67..3b62f2b49aaf 100644 --- a/src/components/LocationPermissionModal/index.android.tsx +++ b/src/components/LocationPermissionModal/index.android.tsx @@ -68,6 +68,10 @@ function LocationPermissionModal({startPermissionFlow, resetPermissionFlow, onDe isVisible={showModal} onConfirm={grantLocationPermission} onCancel={skipLocationPermission} + onBackdropPress={() => { + setShowModal(false); + resetPermissionFlow(); + }} confirmText={hasError ? translate('common.settings') : translate('common.continue')} cancelText={translate('common.notNow')} prompt={translate(hasError ? 'receipt.locationErrorMessage' : 'receipt.locationAccessMessage')}