Skip to content

Conversation

@andrewkunkel
Copy link

@andrewkunkel andrewkunkel commented Dec 16, 2025

Summary:

This code is used for rendering display name styles on iOS, whereas Android is rendered with StrokeStyleSpan (see last PR). Android is currently working correctly, where the stroke does not affect the space occupied by the text in the UI, whereas on iOS there's a visible shift when a stroke is introduced. With this fix, the text height is no longer impacted by the stroke, which is most visible when editing display name styles.

Changelog:

  • Updates the calculation for text baseline when a stroke is present in iOS, so the vertical space occupied in the UI is now consistent with text without a stroke.

Test Plan:

Followed the instructions for testing React Native changes locally, and confirmed that the fix is present and working as intended for display name styles.

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.

2 participants