Skip to content
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

Closed
bvogelzang opened this issue Nov 24, 2015 · 4 comments
Closed

Text truncation for front or middle of string #4329

bvogelzang opened this issue Nov 24, 2015 · 4 comments
Labels
Platform: iOS iOS applications. Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.

Comments

@bvogelzang
Copy link

I realize the numberOfLines prop on the Text 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 the NSLineBreakByTruncatingHead and NSLineBreakByTruncatingMiddle options in iOS. Adding a new prop such as truncatePosition would be a great addition in my book. Thanks!

<Text numberOfLines={1} truncatePosition="middle">Long Text</Text>
@facebook-github-bot
Copy link
Contributor

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.

  • If this is a feature request or a bug that you would like to be fixed by the team, please report it on Product Pains. It has a ranking feature that lets us focus on the most important issues the community is experiencing.
  • If you don't know how to do something or not sure whether some behavior is expected or a bug, please ask on StackOverflow with the tag react-native or for more real time interactions, ask on Discord in the #react-native channel.
  • We welcome clear issues and PRs that are ready for in-depth discussion; thank you for your contributions!

@ide ide added the Platform: iOS iOS applications. label Nov 24, 2015
@mkonicek
Copy link
Contributor

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.

@mkonicek
Copy link
Contributor

@facebook-github-bot answered

@facebook-github-bot
Copy link
Contributor

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.

@facebook-github-bot facebook-github-bot added the Ran Commands One of our bots successfully processed a command. label Mar 20, 2016
@facebook facebook locked as resolved and limited conversation to collaborators Jul 20, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 20, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Platform: iOS iOS applications. Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

5 participants