-
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] lineheight cuts off content on iOS #41240
Labels
Component: TextInput
Related to the TextInput component.
Issue: Author Provided Repro
This issue can be reproduced in Snack or an attached project.
Newer Patch Available
Platform: iOS
iOS applications.
Comments
|
github-actions
bot
added
Newer Patch Available
Component: TextInput
Related to the TextInput component.
Platform: iOS
iOS applications.
labels
Oct 30, 2023
@TLaMars thanks for the issue. Are you using the old architecture or the new one? |
@cipolleschi we are using the old architecture |
@frankcalise , Did you find any solution? I am also facing the same issue. |
cortinico
added
the
Issue: Author Provided Repro
This issue can be reproduced in Snack or an attached project.
label
Mar 5, 2024
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Component: TextInput
Related to the TextInput component.
Issue: Author Provided Repro
This issue can be reproduced in Snack or an attached project.
Newer Patch Available
Platform: iOS
iOS applications.
Description
The TextInput on iOS cuts off content at dashes (-) if it has the
lineHeight
style applied to it. This happens when content is to long and therefore isn't completely visible in the input without moving through it.If the
lineHeight
isn't applied it is not cut off at the dash (-) and the content will end with ellipsis (...).We tried removing everything from the input and found out in that way it was the
lineHeight
that causes this issue.This only happens on iOS and not on Android.
React Native Version
0.71.13
Output of
npx react-native info
Steps to reproduce
It is reproducible by making an TextInput with just
lineHeight
on it with the styling.Than as value pass a really long string or type a really long string with dashes.
Get out of focus with the input and see that the value in the input gets truncated.
Snack, screenshot, or link to a repository
Snack url
Reproducible on Snack with expo 49 and react native version 0.72.4
https://snack.expo.dev/l0o3kNldL
The text was updated successfully, but these errors were encountered: