-
Notifications
You must be signed in to change notification settings - Fork 24.7k
Text component adds a linebreak when string content is equal to width of component #27172
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
Comments
Is there any way to get some eyes on this? It's a major bug and it has been largely ignored. |
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. |
Backlog |
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. |
Uh oh!
There was an error while loading. Please reload this page.
React Native version:
Steps To Reproduce
Describe what you expected to happen:
Some text should either wrap to the new line or a new line should not be created.
Actual Behavior
On both iOS & Android, when the length of the text string is the width of the Text component, it adds a linebreak, creating extra space below text elements.
My guess is that there's some sort of improper rounding happening with float density pixels or something.
Snack, code example, screenshot, or link to a repository:
https://snack.expo.io/@shamilot/text-early-line-wrap
+1 / related:
#15893
#24674
#24977
The text was updated successfully, but these errors were encountered: