-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
fix(rn): Text在部分安卓机上文本显示不全 #11434
fix(rn): Text在部分安卓机上文本显示不全 #11434
Conversation
@@ -19,8 +19,10 @@ const _Text: React.FC<TextProps> = ({ | |||
}: TextProps) => { | |||
return ( | |||
<Text | |||
textBreakStrategy='simple' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
更改这个属性的目的是?
@@ -19,8 +19,10 @@ const _Text: React.FC<TextProps> = ({ | |||
}: TextProps) => { | |||
return ( | |||
<Text | |||
textBreakStrategy='simple' | |||
numberOfLines={0} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
该值默认为 0,不需要添加该行
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我没去深究这几个,是按照这个修改的,修改后确实正常了
https://www.jianshu.com/p/e253eab3354b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
麻烦测试下,只添加
style={[{ fontFamily: '' }, style]}
是否可以解决
这个 PR 做了什么? (简要描述所做更改)
Text在部分安卓机上文本显示不全
这个 PR 是什么类型? (至少选择一个)
这个 PR 涉及以下平台: