From 0c21db360cecc6a3265eea50d628106c58b67af8 Mon Sep 17 00:00:00 2001 From: Alex Hunt Date: Wed, 6 Nov 2024 10:27:31 -0800 Subject: [PATCH] Remove unused ReactFabricInternals API (#47454) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/47454 As far as I can tell, this module is now unused both within the codebase and externally. Delete to reduce our public API surface (deep module is an accessible import path). Changelog: [General][Breaking] - Remove ReactFabricInternals module Reviewed By: cortinico Differential Revision: D65535378 fbshipit-source-id: 25ee16ccc637815ffe1c69a5fc546bd3e11d1689 --- .../ReactNative/ReactFabricInternals.js | 17 ----------------- .../__snapshots__/public-api-test.js.snap | 8 -------- 2 files changed, 25 deletions(-) delete mode 100644 packages/react-native/Libraries/ReactNative/ReactFabricInternals.js diff --git a/packages/react-native/Libraries/ReactNative/ReactFabricInternals.js b/packages/react-native/Libraries/ReactNative/ReactFabricInternals.js deleted file mode 100644 index 749a11eded8..00000000000 --- a/packages/react-native/Libraries/ReactNative/ReactFabricInternals.js +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow strict-local - * @format - */ - -'use strict'; - -const createReactNativeComponentClass = require('../Renderer/shims/createReactNativeComponentClass'); - -module.exports = { - createReactNativeComponentClass, -}; diff --git a/packages/react-native/Libraries/__tests__/__snapshots__/public-api-test.js.snap b/packages/react-native/Libraries/__tests__/__snapshots__/public-api-test.js.snap index ea0a2fe12ef..9412916deb8 100644 --- a/packages/react-native/Libraries/__tests__/__snapshots__/public-api-test.js.snap +++ b/packages/react-native/Libraries/__tests__/__snapshots__/public-api-test.js.snap @@ -7525,14 +7525,6 @@ declare module.exports: UIManagerJS; " `; -exports[`public API should not change unintentionally Libraries/ReactNative/ReactFabricInternals.js 1`] = ` -"declare const createReactNativeComponentClass: $FlowFixMe; -declare module.exports: { - createReactNativeComponentClass: createReactNativeComponentClass, -}; -" -`; - exports[`public API should not change unintentionally Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricHostComponent.js 1`] = ` "declare export default class ReactFabricHostComponent implements INativeMethods