Text's numberOfLines property not respected when non-truncated strings are terminated with a newline character #21406
Labels
Ran Commands
One of our bots successfully processed a command.
Resolution: Locked
This issue was locked by the bot.
Environment
[skip envinfo]
Verified in the latest release (RN 0.57.0)
Description
When passing a string that terminates in a newline
${'\n'}
to aText
component, the number of rendered lines will be one greater than thenumberOfLines
attribute applied when the string is not truncated due to length.Reproducible Demo
Some View:
The text was updated successfully, but these errors were encountered: