From 0252ee7e8e50b27cbf2c0ba5ca8787b5687c4540 Mon Sep 17 00:00:00 2001 From: Mathieu Acthernoene Date: Wed, 1 Jul 2026 11:24:12 +0200 Subject: [PATCH] Remove what's remaining from InteractionManager --- .../workflow-scripts/addDescriptiveLabels.js | 1 - .../src/configs/lazy-imports.js | 1 - packages/react-native/index.js | 19 ------------------- 3 files changed, 21 deletions(-) diff --git a/.github/workflow-scripts/addDescriptiveLabels.js b/.github/workflow-scripts/addDescriptiveLabels.js index 4493fbb48c63..a7286eb9b695 100644 --- a/.github/workflow-scripts/addDescriptiveLabels.js +++ b/.github/workflow-scripts/addDescriptiveLabels.js @@ -109,7 +109,6 @@ const apis = [ 'ImageEditor', 'ImagePickerIOS', 'ImageStore', - 'InteractionManager', 'Keyboard', 'LayoutAnimation', 'Linking', diff --git a/packages/react-native-babel-preset/src/configs/lazy-imports.js b/packages/react-native-babel-preset/src/configs/lazy-imports.js index 95cb75e262c2..bf074011e909 100644 --- a/packages/react-native-babel-preset/src/configs/lazy-imports.js +++ b/packages/react-native-babel-preset/src/configs/lazy-imports.js @@ -62,7 +62,6 @@ module.exports = new Set([ 'Easing', 'ReactNative', 'I18nManager', - 'InteractionManager', 'Keyboard', 'LayoutAnimation', 'Linking', diff --git a/packages/react-native/index.js b/packages/react-native/index.js index 69c3f67ca8b1..27d8189d48f3 100644 --- a/packages/react-native/index.js +++ b/packages/react-native/index.js @@ -27,7 +27,6 @@ import typeof * as ReactNativePublicAPI from './index.js.flow'; const warnOnce = require('./Libraries/Utilities/warnOnce').default; -const invariant = require('invariant'); module.exports = { // #region Components @@ -386,21 +385,3 @@ module.exports = { }, // #endregion } as ReactNativePublicAPI; - -if (__DEV__) { - /* $FlowFixMe[prop-missing] This is intentional: Flow will error when - * attempting to access InteractionManager. */ - /* $FlowFixMe[invalid-export] This is intentional: Flow will error when - * attempting to access InteractionManager. */ - Object.defineProperty(module.exports, 'InteractionManager', { - configurable: true, - get() { - invariant( - false, - 'InteractionManager has been removed from react-native core. ' + - 'Please refactor long tasks into smaller ones, and use ' + - "'requestIdleCallback' instead.", - ); - }, - }); -}