Use public unstable_TextAncestorContext API (#477)
- Use public unstable_TextAncestorContext API
React Native 0.81 exposed TextAncestorContext as a public API (facebook/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.
- Update benchmark react-native mock for unstable_TextAncestorContext
Co-authored-by: Yamin Yassin Yamin.Yassin+CAG@cagtechhub.com
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802047560号
react-strict-dom dev
Development monorepo for “React Strict DOM”.
React Strict DOM (RSD) standardizes the development of styled React components for web and native. The goal of RSD is to improve the speed and efficiency of React development without compromising on performance, reliability, or quality. Building with RSD is helping teams at Meta ship features faster, to more platforms, with fewer engineers.
Structure
.githubappspackagestoolsContributing
Learn more about how to contribute.
Code of conduct
This project expects all participants to adhere to Meta’s OSS Code of Conduct. Please read the full text so that you can understand what actions will and will not be tolerated.
License
React Strict DOM is MIT licensed.