From 99b147f81d438745182e8814f88b7f44a2ad88d5 Mon Sep 17 00:00:00 2001 From: Yamin Yassin Date: Wed, 13 May 2026 19:03:46 +0100 Subject: [PATCH] Delete TextAncestor compatibility shim MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The shim file `packages/react-native/Libraries/Text/TextAncestor.js` was kept solely to support react-strict-dom's deep import. The file's own comment carried a TODO from @huntie to delete it once the cross-repo reference was fixed. react-strict-dom has now switched to the public `unstable_TextAncestorContext` API (facebook/react-strict-dom#477), exposed in #52368. No internal React Native consumers reference this shim — both `packages/react-native/index.js` and `index.js.flow` import `./Libraries/Text/TextAncestorContext` directly. ## Changelog: [INTERNAL] - Delete TextAncestor compatibility shim --- .../react-native/Libraries/Text/TextAncestor.js | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 packages/react-native/Libraries/Text/TextAncestor.js diff --git a/packages/react-native/Libraries/Text/TextAncestor.js b/packages/react-native/Libraries/Text/TextAncestor.js deleted file mode 100644 index d9c1da369ee7..000000000000 --- a/packages/react-native/Libraries/Text/TextAncestor.js +++ /dev/null @@ -1,16 +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 - * @format - */ - -// Compatibility module for ReactStrictDOMTextAncestorContext.native.js.flow (react-strict-dom) -// TODO(huntie): Delete after we've fixed this cross-repo reference - -import TextAncestorContext from './TextAncestorContext'; - -export default TextAncestorContext;