-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
TextInput wraps text instead of showing ellipsis #21969
Comments
Can you run If you believe this information is irrelevant to the reported issue, you may write |
editing to |
This issue still persists in android for rn version 0.59 |
Still reproduce |
Looks like this issue is related to #14845 |
I've run into this and tested it pretty extensively on iOS. It seems like it is actually related to iOS version. I do not see the behavior on iOS 10.3 devices, those place ellipsis at the end of the text as expected. On iOS 11, 12, and 13 devices however, I see this new, broken behavior where the text wraps instead of staying on a single line. This is running the same exact RN code, consisting of a single TextInput box. This is with React Native 0.61.5 |
Environment
Description
When a user types directly into a
TextInput
and overflows the width, then blurs, the content wraps instead of an ellipsis being added. Content is ellipsisized correctly if it's set programatically. Adding vertical padding can hide the wrapping content, but the ellipsis is still missing.In the screenshots (and demo) the first input has
numberOfLines={1}
, the second doesn't, the third haspaddingVertical: 0
, the fourth haspaddingVertical: 20
.Reproducible Demo
https://snack.expo.io/@apexskier/text-wrapping
The text was updated successfully, but these errors were encountered: