admin管理员组文章数量:1435859
Previously I've been able to adjust the font weight without specifying the "-Bold" font family, but by just setting an appropriate font weight.
After upgrading, it's not choosing the font based on the width, even though that's the intended behavior according to the docs: /docs/text-style-props#fontweight
On Android it works as expected.
Here's my testing code:
<Text
style={[
{ fontFamily: 'Chivo-Bold', fontSize: 31 },
{ fontSize: 32, lineHeight: 35, fontWeight: '700', letterSpacing: -0.5 },
]}
>
Aasd sadasdƒ Sg
</Text>
<Text
style={[
{ fontFamily: 'Chivo-Regular', fontSize: 31 },
{ fontSize: 32, lineHeight: 35, fontWeight: '700', letterSpacing: -0.5 },
]}
>
Aasd sadasdƒ Sg
</Text>
Here's how it looks in RN 0.75 and 0.71 without New Architecture
Here's how it looks in RN 0.76 with New Architecture
本文标签: React Native 076 renders bold text different from earlier versions on iOSStack Overflow
版权声明:本文标题:React Native 0.76 renders bold text different from earlier versions on iOS - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745666986a2669343.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论