-
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
TextInput with TextAlign on iOS does not add ellipsis instead wraps #29068
Comments
|
Any Update? Its been 1 month now. |
Comment. Just to keep this thread active. |
I am also seeing this issue on "react-native": "0.61.5" |
Same on 0.63.3 |
a bug in React Native: facebook/react-native#29068 before this is fixed, use multiline for now
Any Solution? |
@JNUfeatherwit Adding VerticalPadding through CSS solves the issue of multiline but still no ellipsis. |
Wow! It Actually works! Thank you |
This issue is still persisting. Adding the verticalPadding does not ultimately solve the problem. Any updates? |
@JNUfeatherwit can you elaborate on your vertical padding solution? There is no "CSS" in react-native so that is confusing to me. Applying vertical padding in the style for a TextInput isn't changing any of the wrapping behavior for us. Having investigated, I believe the issue is in the In
|
any updates ? |
This is the workaround mentioned above:
|
Any updates? |
Just found out this bug, because I'm using Shame that this issue is now 2 years old, and to me it seems critical to be resolved as beginners could stumble on this and get their frustration level rising |
To clarify, adding a slight vertical padding to the Solution below: const styles = new StyleSheet.create({
textInput: {
...(Platform.OS === 'ios' ? {paddingVertical: 10} : {})
}
}) const Element = () => <TextInput style={styles.textInput}> |
Oh... crap It needs to be fixed |
Hey @TomSwift are you still using this patch or did you find any problems with it? |
Issue still open in react-native 0.70.6 😢 |
Still an issue. |
Sometimes textAlign works, sometimes not. |
Hello, Thanks for the issue. I have been contributing to facebook/react-native for 4 years and specialize in the Text/TextInput components. I currently have 58 facebook/react-native PRs: https://github.com/facebook/react-native/pulls?q=is%3Apr+author%3Afabriziobertoglio1987+ This is the suggested approach from the react-native core team (see this discussion): I'm publishing several fixes for Text and TextInput component in a separate library react-native-improved.
The advantages would be:
What do you think about this? Should I keep working on this? Thanks |
any updates? |
Would like to see this resolved as well. It's quite pesky that even with |
Still doesn't work. fix for me: |
would be nice to have this working |
Almost 4 years without a solution! |
This seems like a very core issue. Basic inputs like a text field is something I think everyone would expect to work in its basic form (i.e. just input long text). |
This worked for me, thank you @TomSwift |
This is going to be fixed here: #45968 |
Write some long text into the first field with spaces.
Write similar text into the second field.
Unfocus second input
Expected: both fields will have ellipsis at the end
Actual: second input with textAlign doesn't have ellipsis.
Android app works in a different way:
It never shows ellipsis but if you type a long string it always shows the end of it and never beginning. I guess it should move to begin when unfocused.
react: 16.11.0 => 16.11.0
react-native: 0.62.1 => 0.62.1
The text was updated successfully, but these errors were encountered: