Skip to content

Add default "overflow: visible" to Text#451

Merged
necolas merged 1 commit into
react:mainfrom
NickGerleman:add-text-overflow-visible
Feb 13, 2026
Merged

Add default "overflow: visible" to Text#451
necolas merged 1 commit into
react:mainfrom
NickGerleman:add-text-overflow-visible

Conversation

@NickGerleman

Copy link
Copy Markdown
Contributor

iOS and Android both historically clip everything outside the bounds of the paragraph/top-level text element. This includes clipping content, when line-height would set the bounds to be smaller than the text to be drawn. This is equivalent to setting overflow: 'hidden' manually on a paragraph.

Changing this default behavior in React Native is scary and breaking and not something we are taking on right now, but with Facsimile/PreparedLayoutTextView on Android, it can be controlled with opt-in overflow: visible, for web style clipping.

This change defaults to overflow: 'visible' to get that web style behavior by default (e.g. no clipping the bounds of TextView/<p> when line-height makes text larger than the bounds.

iOS and Android both historically clip everything outside the bounds of the paragraph/top-level text element. This includes clipping content, when `line-height` would set the bounds to be smaller than the text to be drawn. This is equivalent to setting `overflow: 'hidden'` manually on a paragraph.

Changing this default behavior in React Native is scary and breaking, but with Facsimile, it can be controlled with opt-in `overflow: visible`, for web style clipping.

Let's set default `overflow: 'visible'`, so that when using web interface, we don't clip the bounds of text (like web doesn't).
@NickGerleman

NickGerleman commented Feb 13, 2026

Copy link
Copy Markdown
Contributor Author

@mellyeliu this should prevent existing line height clipping issue on new Android text stack rolling out.

@necolas necolas merged commit 0522664 into react:main Feb 13, 2026
6 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants