-
Notifications
You must be signed in to change notification settings - Fork 164
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
Feature: numberOfLines control #69
Comments
Any update on the above issue? |
@sunny1105 -- the way this library works is that it renders a different text component for every item you match. That means that you can't easily limit it to a specific number of lines. This also applies to other "complex" attributes on Sorry for the bad news! If somebody wants to add a feature for supporting |
To elaborate, the fact that this works on iOS/not on android is a fluke. The relevant code is here: react-native-parsed-text/src/ParsedText.js Lines 71 to 80 in e8f140e
That said, you may have success if you pass the |
If i set numberOfLines in childrenProps, it does not seem to work. It works if I set it directly on the component. |
By any chance, was onTextLayout implemented or considered since? :/ |
I'm using this library, and when passing the
numberOfLines
prop it works on IOS but it doesn't on Android. This is my code:and I'm implementing my component like this:
The text was updated successfully, but these errors were encountered: