Commit 39f7828
Use public unstable_TextAncestorContext API
React Native 0.81 exposed TextAncestorContext as a public API
(react/react-native#52368). Switch from the deep import path
'react-native/Libraries/Text/TextAncestor' to the public
'unstable_TextAncestorContext' export.
The deep-import target file in React Native exists solely as a
backwards-compatibility shim for react-strict-dom — see
https://github.com/facebook/react-native/blob/main/packages/react-native/Libraries/Text/TextAncestor.js
which carries a TODO from @huntie to delete it once this cross-repo
reference is fixed.
Same React Context object, no behavioral change. Test mock updated
to match the new import path; old deep-import mock deleted.1 parent 07d1623 commit 39f7828
3 files changed
Lines changed: 3 additions & 11 deletions
File tree
- packages/react-strict-dom
- src/native/react-native
- tests/__mocks__/react-native
- Libraries/Text
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
Lines changed: 0 additions & 10 deletions
This file was deleted.
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| 123 | + | |
| 124 | + | |
123 | 125 | | |
124 | 126 | | |
125 | 127 | | |
| |||
0 commit comments