diff --git a/src/CONST.ts b/src/CONST.ts index 30077672b5eb1..f6b3293e00867 100755 --- a/src/CONST.ts +++ b/src/CONST.ts @@ -763,6 +763,12 @@ const CONST = { GB: 'GB', IT: 'IT', }, + SWIPE_DIRECTION: { + DOWN: 'down', + LEFT: 'left', + RIGHT: 'right', + UP: 'up', + }, DESKTOP_DEEPLINK_APP_STATE: { CHECKING: 'checking', INSTALLED: 'installed', diff --git a/src/components/AttachmentModal.tsx b/src/components/AttachmentModal.tsx index e8da2b56cab93..40f2cc4cf6f05 100644 --- a/src/components/AttachmentModal.tsx +++ b/src/components/AttachmentModal.tsx @@ -514,6 +514,7 @@ function AttachmentModal({ } }} propagateSwipe + swipeDirection={shouldUseNarrowLayout ? CONST.SWIPE_DIRECTION.RIGHT : undefined} initialFocus={() => { if (!submitRef.current) { return false; diff --git a/src/components/Search/SearchRouter/SearchRouterModal.tsx b/src/components/Search/SearchRouter/SearchRouterModal.tsx index fa8165fec596d..bb65689f700a6 100644 --- a/src/components/Search/SearchRouter/SearchRouterModal.tsx +++ b/src/components/Search/SearchRouter/SearchRouterModal.tsx @@ -30,6 +30,7 @@ function SearchRouterModal() { popoverAnchorPosition={{right: 6, top: 6}} fullscreen propagateSwipe + swipeDirection={shouldUseNarrowLayout ? CONST.SWIPE_DIRECTION.RIGHT : undefined} shouldHandleNavigationBack={isMobileChrome()} onClose={closeSearchRouter} onModalHide={() => setShouldHideInputCaret(isMobileWebSafari)}