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

fix(rn): Text在部分安卓机上文本显示不全 #11434

Closed
wants to merge 7 commits into from
Closed

fix(rn): Text在部分安卓机上文本显示不全 #11434

wants to merge 7 commits into from

Conversation

ShaoGongBra
Copy link
Contributor

@ShaoGongBra ShaoGongBra commented Mar 11, 2022

这个 PR 做了什么? (简要描述所做更改)

Text在部分安卓机上文本显示不全

这个 PR 是什么类型? (至少选择一个)

这个 PR 涉及以下平台:

  • 移动端(React-Native)

@ZakaryCode ZakaryCode added the T-rn Target - 编译到 React Native label Mar 11, 2022
@@ -19,8 +19,10 @@ const _Text: React.FC<TextProps> = ({
}: TextProps) => {
return (
<Text
textBreakStrategy='simple'
Copy link
Member

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}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

该值默认为 0,不需要添加该行

Copy link
Contributor Author

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

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

麻烦测试下,只添加

style={[{ fontFamily: '' }, style]}

是否可以解决

@ShaoGongBra ShaoGongBra closed this by deleting the head repository Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-rn Target - 编译到 React Native
Projects
None yet
3 participants