-
Notifications
You must be signed in to change notification settings - Fork 24.2k
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 truncation for front or middle of string #4329
Comments
Hey bvogelzang, thanks for reporting this issue! React Native, as you've probably heard, is getting really popular and truth is we're getting a bit overwhelmed by the activity surrounding it. There are just too many issues for us to manage properly.
|
Hey @bvogelzang, we're a small team and rely on the community to fix bugs that don't affect fb apps. If you know this is a bug please consider sending a pull request with a fix. |
@facebook-github-bot answered |
Closing this issue as @mkonicek says the question asked has been answered. Please help us by asking questions on StackOverflow. StackOverflow is amazing for Q&A: it has a reputation system, voting, the ability to mark a question as answered. Because of the reputation system it is likely the community will see and answer your question there. This also helps us use the GitHub bug tracker for bugs only. |
I realize the
numberOfLines
prop on theText
component can be used to effectively truncate the tail of strings if they are too long. What I'm requesting is that we have the option to truncate the middle or front of the string if needed. Something equivalent to theNSLineBreakByTruncatingHead
andNSLineBreakByTruncatingMiddle
options in iOS. Adding a new prop such astruncatePosition
would be a great addition in my book. Thanks!The text was updated successfully, but these errors were encountered: