Skip to content

Fix for iOS text truncation issues. (0.86.0 branch) - #19

Draft
andrewkunkel wants to merge 2 commits into
0.86.0-discordfrom
akunkel/ios-truncation
Draft

Fix for iOS text truncation issues. (0.86.0 branch)#19
andrewkunkel wants to merge 2 commits into
0.86.0-discordfrom
akunkel/ios-truncation

Conversation

@andrewkunkel

@andrewkunkel andrewkunkel commented Jul 22, 2026

Copy link
Copy Markdown

@andrewkunkel andrewkunkel changed the title Fix for iOS text truncation issues. Fix for iOS text truncation issues. (0.86.0 branch) Jul 23, 2026
Extract the duplicated RCTTruncatedAttributedStringForStroke helper out of
RCTTextView.mm and RCTTextLayoutManager.mm into a single shared unit in
React-Core (React/Base/RCTTextStroke.{h,mm}), which both the legacy
(React-RCTText) and Fabric (React-FabricComponents) text pods depend on.

Also document that the helper only supports tail truncation (the mode used
by stroke effects); clip returns the string unchanged and head/middle would
need mode-specific ellipsis placement.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant