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.", - ); - }, - }); -}