From 252631342de95f08f90d7350316d832275779a6c Mon Sep 17 00:00:00 2001 From: GCyganek Date: Fri, 29 May 2026 10:14:17 +0200 Subject: [PATCH 1/2] InteractionManager migration - ContactMethodDetailsPage --- .../Profile/Contacts/ContactMethodDetailsPage.tsx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/pages/settings/Profile/Contacts/ContactMethodDetailsPage.tsx b/src/pages/settings/Profile/Contacts/ContactMethodDetailsPage.tsx index 0fea5840fc06..3b6abbad1c76 100644 --- a/src/pages/settings/Profile/Contacts/ContactMethodDetailsPage.tsx +++ b/src/pages/settings/Profile/Contacts/ContactMethodDetailsPage.tsx @@ -198,9 +198,7 @@ function ContactMethodDetailsPage({route}: ContactMethodDetailsPageProps) { const turnOnDeleteModal = useCallback(() => { const openDeleteModal = async () => { const result = await showRemoveContactMethodModal(); - InteractionManager.runAfterInteractions(() => { - validateCodeFormRef.current?.focusLastSelected?.(); - }); + validateCodeFormRef.current?.focusLastSelected?.(); if (result.action !== ModalActions.CONFIRM) { return; } @@ -315,9 +313,7 @@ function ContactMethodDetailsPage({route}: ContactMethodDetailsPageProps) { { - InteractionManager.runAfterInteractions(() => { - validateCodeFormRef.current?.focus?.(); - }); + validateCodeFormRef.current?.focus?.(); }} testID="ContactMethodDetailsPage" focusTrapSettings={{ From 0dfb42caa2dbc1b3a7bdb773e812f85e40867302 Mon Sep 17 00:00:00 2001 From: GCyganek Date: Fri, 29 May 2026 10:35:03 +0200 Subject: [PATCH 2/2] Fix ESlint --- config/eslint/eslint.seatbelt.tsv | 1 - .../settings/Profile/Contacts/ContactMethodDetailsPage.tsx | 2 -- 2 files changed, 3 deletions(-) diff --git a/config/eslint/eslint.seatbelt.tsv b/config/eslint/eslint.seatbelt.tsv index 30eebd57e476..faa34f5150a0 100644 --- a/config/eslint/eslint.seatbelt.tsv +++ b/config/eslint/eslint.seatbelt.tsv @@ -533,7 +533,6 @@ "../../src/pages/media/AttachmentModalScreen/routes/hooks/useReportAttachmentModalType.ts" "react-hooks/set-state-in-effect" 1 "../../src/pages/settings/AboutPage/AboutPage.tsx" "react-hooks/refs" 1 "../../src/pages/settings/PaymentCard/ChangeCurrency/index.tsx" "no-restricted-syntax" 1 -"../../src/pages/settings/Profile/Contacts/ContactMethodDetailsPage.tsx" "@typescript-eslint/no-deprecated/InteractionManager.runAfterInteractions" 2 "../../src/pages/settings/Profile/Contacts/ContactMethodDetailsPage.tsx" "react-hooks/refs" 3 "../../src/pages/settings/Profile/Contacts/ContactMethodDetailsPage.tsx" "react-hooks/set-state-in-effect" 3 "../../src/pages/settings/Profile/CustomStatus/StatusClearAfterPage.tsx" "react-hooks/set-state-in-effect" 1 diff --git a/src/pages/settings/Profile/Contacts/ContactMethodDetailsPage.tsx b/src/pages/settings/Profile/Contacts/ContactMethodDetailsPage.tsx index 3b6abbad1c76..a75b9a66defd 100644 --- a/src/pages/settings/Profile/Contacts/ContactMethodDetailsPage.tsx +++ b/src/pages/settings/Profile/Contacts/ContactMethodDetailsPage.tsx @@ -1,8 +1,6 @@ import {useIsFocused} from '@react-navigation/native'; import {Str} from 'expensify-common'; import React, {useCallback, useEffect, useMemo, useRef, useState} from 'react'; -// eslint-disable-next-line no-restricted-imports -import {InteractionManager} from 'react-native'; import FullPageNotFoundView from '@components/BlockingViews/FullPageNotFoundView'; import {useDelegateNoAccessActions, useDelegateNoAccessState} from '@components/DelegateNoAccessModalProvider'; import ErrorMessageRow from '@components/ErrorMessageRow';