-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
Nested text with different lineHeight are cropped on Android #30794
Comments
Seems to be connect to other issue: |
looks like there no solution/fix yet.I catch the same behaviour at RN 0.66.2 |
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
This issue was closed because it has been stalled for 7 days with no activity. |
Do you still experience this issue? I have four years of experience maintaining facebook/react-native and I specialize in the Text and TextInput components. I currently have 58 facebook/react-native PRs. If you still experience this issue, I will prepare a patched release with the fix. Thanks a lot |
+1 |
I have just encountered this, tracking it down to this was a pain and to find that there's no fix is even more of a pain. |
Description
If we nest text element inside text element with different heights eg: lineHeight 20 inside lineHeight 30 output on android will be cropped, the bigger difference the bigger crop is. It looks like parent
Text
element takes childText
lineHeight.I have found workaround by wrapping child
Text
element byView
element first to breakText
styles inheritance.React Native version:
Expected Results
Text should be displayed the same way on Android and on iOS
Snack, code example, screenshot, or link to a repository:
Minimal App to show bug:
Screenshot Android:
Screenshot iOS:
The text was updated successfully, but these errors were encountered: