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

[enhancement] Ability to expand #70

Open
Tintef opened this issue Oct 7, 2020 · 0 comments
Open

[enhancement] Ability to expand #70

Tintef opened this issue Oct 7, 2020 · 0 comments

Comments

@Tintef
Copy link

Tintef commented Oct 7, 2020

Hi! First of all, great library!

I think a pretty common use case for this library is showing a brief preview of the text and let the user expand the preview to see the full text. In my case, I'm handling the expanded state on my component and either rendering the text itself of the one wrapper by the library, but it would be cool if the library supported this.

For this, I can think of two approaches:

  • Adding a maxLines value on the onReflow function, so we can dynamically change between a small number and that one.
  • Add a new prop to support this

What do you think? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants