-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Text's numberOfLines property not respected when non-truncated strings are terminated with a newline character #21612
Comments
Resubmitting this issue, because @react-native-bot failed to detect the I was able to temporarily work around this issue by passing a non-breaking space character after the newline: {`${detail}${'\n\u00A0'}`} |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as "For Discussion" or "Good first issue" and I will leave it open. Thank you for your contributions. |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions. |
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information. |
Environment
[skip envinfo]
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: