mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/51183 D58818560 tried to deduplicate some code, but introduced an error, where we no longer correctly incorporate the width MeasureMode into the text layout that we create, instead, passing `YogaMeasureMode.EXACTLY`. In effect, this means the Android layout created always takes up the maximum allowable space, even if content is smaller. This is later masked, because our returned measure when `AT_MOST` is based on maximum line length, and the layout is then recreated when drawing a TextView, but means: 1. Attachments may not be positioned correctly, when using a non-left-aligned paragraph alignment 2. Directly drawing the layout shows the wrong thing Changelog: [Android][Fixed] - Fix TextLayoutManager MeasureMode Regression Reviewed By: rshest Differential Revision: D74366936 fbshipit-source-id: 3eda8c716ba9790a61c2da19023e140afbb6971d