-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
【RN v0.71.10】Text doesn't show all content on Android(some devices) #37764
Comments
Updates: The issue can be reproduced using Android emulator The reproduced demo repository link: Demo |
This version of React Native doens't exist |
@cortinico Oh..Sorry. It should be |
Any updates? It still exists on |
This is probably related to #15114 |
Finally I fixed it to add nested outer
|
Description
Init a new project, just add
Text
component to show some texts on Android. TheText
doesn't show all content for Japanese with custom fontfontFamily--BarlowCondensed-Regular
on Android(some devices only) such as OPPO K9x 5G.React Native Version
0.71.10
Output of
npx react-native info
➜ newrnversion npx react-native info
Steps to reproduce
npx react-native init newrnversion
.assets/fonts
insidenewrnversion/android/app/src/main
.BarlowCondensed-Regular
file tonewrnversion/android/app/src/main/assets/fonts
.App.tsx
file, adds aText
component with Japanese.fontFamily
asBarlowCondensed-Regular
.Text
does not show incomplete.Snack, code example, screenshot, or link to a repository
Codes
Screenshot
Actual behaviour
The text does not align center and the content shows incomplete. It seems that it's cut off and moves down!
Expected behaviour
The text aligns center and the content shows complete. For example:
However, if I sets
lineHeight: 20
likeEverything works well on all devices! But I think we shouldn't always set
lineHeight
to avoid this problem. It should be a bug on Android. Any ideas or how to fix it using a efficient way?At last, the font file(
BarlowCondensed-Regular
) can be downloaded via the link: BarlowCondensed-Regular.Any help will be appreciated.
The text was updated successfully, but these errors were encountered: