Skip to content

fix(ios): nested NitroText numberOfLines renders only one line#15

Closed
patrickkabwe wants to merge 4 commits intomainfrom
fix/nested-numberOfLines-merge
Closed

fix(ios): nested NitroText numberOfLines renders only one line#15
patrickkabwe wants to merge 4 commits intomainfrom
fix/nested-numberOfLines-merge

Conversation

@patrickkabwe
Copy link
Copy Markdown
Owner

Fixes an issue where nested NitroText with numberOfLines would display only the first line.\n\nChanges\n- Multi-line truncation now coerces to tail or wrap+clip, avoiding head/middle for n>1\n- Ensures composed parent+child fragments layout to the correct multi-line height\n\nWhy\n- iOS only reliably supports tail/clip for multi-line; head/middle can collapse layout to a single line, especially with composed attributed strings.\n\nTest Plan\n- In example/App.tsx, nest a NitroText inside another with numberOfLines={2}\n- Verify both parent literal and inner content render across two lines with tail ellipsis (or wrap+clip) rather than collapsing to one line.

…berOfLines\n\n- Use tail truncation for multi-line, clip wraps; avoid head/middle for n>1\n- Prevents single-line collapse when composing parent+child fragments\n- Aligns closer to RN Text behavior in nested scenarios
@patrickkabwe patrickkabwe deleted the fix/nested-numberOfLines-merge branch September 21, 2025 09:05
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