Add experimental longest-line sizing for wrapped Text (#58351) - #58351
Open
Abbondanzo wants to merge 1 commit into
Open
Add experimental longest-line sizing for wrapped Text (#58351)#58351Abbondanzo wants to merge 1 commit into
Abbondanzo wants to merge 1 commit into
Conversation
|
@Abbondanzo has exported this pull request. If you are a Meta employee, you can view the originating Diff in D118718410. |
Contributor
Author
|
/review |
🤖 AI code reviewDecision: Ready for human review Overall PR risk: Low. The change is additive and preserves default Text measurement, with new behavior limited to Text that opts into longest-line mode on Android and iOS. The most plausible breakage is narrower measurement or rewrapping for opted-in Text only. No critical or warning findings were reported. No findings. This review is advisory — it never blocks a merge and never auto-approves. |
Contributor
Author
|
/review |
1 similar comment
Contributor
Author
|
/review |
Abbondanzo
added a commit
to Abbondanzo/react-native
that referenced
this pull request
Sep 9, 2026
Summary: Pull Request resolved: react#58351 Add `textWidthMode="longest-line"` to size wrapped `Text` to its widest rendered line on Android and iOS. This keeps content-proportional spacing in horizontal layouts without an `onTextLayout` round trip; the default measurement behavior is unchanged. Changelog: [General][Added] - Add `textWidthMode="longest-line"` for sizing wrapped `Text` to its widest rendered line. Differential Revision: D118718410
Abbondanzo
force-pushed
the
export-D118718410
branch
from
September 9, 2026 02:54
e20a649 to
cf1edd5
Compare
Abbondanzo
added a commit
to Abbondanzo/react-native
that referenced
this pull request
Sep 9, 2026
Summary: Pull Request resolved: react#58351 Add `experimental_textWidthMode` as a Text style for sizing wrapped text to its widest rendered line on Android and iOS. The `auto` value preserves the existing constrained measurement behavior, while `longest-line` removes unused horizontal space without changing the line count. Changelog: [General][Added] - Add experimental longest-line width sizing for wrapped `Text` Reviewed By: javache Differential Revision: D118718410
Abbondanzo
force-pushed
the
export-D118718410
branch
from
September 9, 2026 17:16
cf1edd5 to
9b01f82
Compare
Abbondanzo
added a commit
to Abbondanzo/react-native
that referenced
this pull request
Sep 9, 2026
Summary: Pull Request resolved: react#58351 Add `experimental_textWidthMode` as a Text style for sizing wrapped text to its widest rendered line on Android and iOS. The `auto` value preserves the existing constrained measurement behavior, while `longest-line` removes unused horizontal space without changing the line count. Changelog: [General][Added] - Add experimental longest-line width sizing for wrapped `Text` Reviewed By: javache Differential Revision: D118718410
Abbondanzo
force-pushed
the
export-D118718410
branch
from
September 9, 2026 19:10
9b01f82 to
7edc6a7
Compare
Abbondanzo
added a commit
to Abbondanzo/react-native
that referenced
this pull request
Sep 9, 2026
Summary: Pull Request resolved: react#58351 Add `experimental_textWidthMode` as a Text style for sizing wrapped text to its widest rendered line on Android and iOS. The `auto` value preserves the existing constrained measurement behavior, while `longest-line` removes unused horizontal space without changing the line count. Changelog: [General][Added] - Add experimental longest-line width sizing for wrapped `Text` Reviewed By: javache Differential Revision: D118718410
Abbondanzo
force-pushed
the
export-D118718410
branch
from
September 9, 2026 19:16
7edc6a7 to
a43fbf9
Compare
Summary: Pull Request resolved: react#58351 Add `experimental_textWidthMode` as a Text style for sizing wrapped text to its widest rendered line on Android and iOS. The `auto` value preserves the existing constrained measurement behavior, while `longest-line` removes unused horizontal space without changing the line count. Changelog: [General][Added] - Add experimental longest-line width sizing for wrapped `Text` Reviewed By: javache Differential Revision: D118718410
Abbondanzo
force-pushed
the
export-D118718410
branch
from
September 9, 2026 19:23
a43fbf9 to
4a4eb63
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary:
Add
experimental_textWidthModeas a Text style for sizing wrapped text to its widest rendered line on Android and iOS. Theautovalue preserves the existing constrained measurement behavior, whilelongest-lineremoves unused horizontal space without changing the line count.Changelog:
[General][Added] - Add experimental longest-line width sizing for wrapped
TextReviewed By: javache
Differential Revision: D118718410