Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Turn CXX implementation of TextLayoutManager into interface (facebook…
…#39805) Summary: Pull Request resolved: facebook#39805 ## Changelog: [Internal] - This makes corresponsing text measure methods inside `TextLayoutManager` overridable, so that it can be substituted with a custom implementation without introducing a new "platform". Rationale: CXX platform is rather general and less specific than Android or iOS, so we may potentially have multiple alternative implementations of text layout there. An alternative could be making `TextLayoutManager` an interface across all the platforms, and actual implementations called e.g. `TextLayoutManagerImpl` in each of them, however this would be quite a bit bigger blast radius without much added benefit for Android/iOS. Differential Revision: D49907594 fbshipit-source-id: 565020f83a3f9e6af2f8b04580b519f9ecca26e5
- Loading branch information