diff --git a/src/components/AttachmentModal.tsx b/src/components/AttachmentModal.tsx index 7831e116a89d..f76ade0db879 100644 --- a/src/components/AttachmentModal.tsx +++ b/src/components/AttachmentModal.tsx @@ -1,6 +1,6 @@ import {Str} from 'expensify-common'; import React, {memo, useCallback, useEffect, useMemo, useRef, useState} from 'react'; -import {Keyboard, View} from 'react-native'; +import {InteractionManager, Keyboard, View} from 'react-native'; import {GestureHandlerRootView} from 'react-native-gesture-handler'; import {useOnyx} from 'react-native-onyx'; import type {OnyxEntry} from 'react-native-onyx'; @@ -435,7 +435,7 @@ function AttachmentModal({ text: translate('common.replace'), onSelected: () => { closeModal(true); - Navigation.isNavigationReady().then(() => { + InteractionManager.runAfterInteractions(() => { Navigation.navigate( ROUTES.MONEY_REQUEST_STEP_SCAN.getRoute(CONST.IOU.ACTION.EDIT, iouType, transaction?.transactionID, report?.reportID, Navigation.getActiveRouteWithoutParams()), );