Skip to content

fix: map textDecorationStyle 'double' to Double, not Dotted#49

Draft
haileyok wants to merge 1 commit into
mainfrom
worktree-fix-textdecoration-double
Draft

fix: map textDecorationStyle 'double' to Double, not Dotted#49
haileyok wants to merge 1 commit into
mainfrom
worktree-fix-textdecoration-double

Conversation

@haileyok
Copy link
Copy Markdown
Member

@haileyok haileyok commented May 9, 2026

Summary

Spotted during a code-review pass.

RNUITextViewShadowNode.cpp:99 checks RNUITextViewChildTextDecorationStyle::Dotted for the second time, so the branch that was supposed to set TextDecorationStyle::Double is unreachable. Result: `textDecorationStyle: 'double'` silently doesn't render as a double underline — it falls through to whatever the default is.

One-character fix.

Test plan

  • Render `<UITextView selectable uiTextView style={{textDecorationLine: 'underline', textDecorationStyle: 'double'}}>` and verify it renders as a double underline.
  • Verify `solid`, `dotted`, `dashed` continue to render correctly.

🤖 Generated with Claude Code

The fourth branch checks Dotted again instead of Double, so the Double
case is unreachable and 'double' silently falls back to whatever the
default decoration style is.
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