gpt4 book ai didi

FontStyle: 'italic' not working in IOS React native(FontStyle:“italic”在IOS React本机中不起作用)

转载 作者:bug小助手 更新时间:2023-10-22 16:56:56 35 4
gpt4 key购买 nike



This is the react native simpler code of turning text into italic, however its working fine in the android device but not working in IOS for some reason.
my react native version : 0.71.4

这是将文本转换为斜体的react原生更简单的代码,但由于某种原因,它在android设备中运行良好,但在IOS中不起作用。我的react本机版本:0.71.4


...
<Text numberOfLines={1} style={styles.textStyle}> Featured In </Text>
...

精选在 中。。。


textStyle: { ... marginLeft: -30, fontStyle: 'italic', },

text样式:{…marginLeft:-30,fontStyle:'italic',},


Android Output of text with style
IOS Output of text with no style

安卓输出有风格的文本IOS输出没有风格的文本


I've tried searching for this problem but did not find anything over stack-overflow, I hope i get the answer as quick as possible, thanks

我已经尝试搜索这个问题,但没有发现任何超过堆栈溢出的内容,我希望我能尽快得到答案,谢谢


更多回答

What font family are you using on this?

你在这上面使用的是什么字体系列?

None, Im using react native Default fontStyle and its not providing satisfactory output in IOS only.

无,我使用的是react native Default fontStyle,它不能仅在IOS中提供令人满意的输出。

优秀答案推荐

Clean and rebuild the app:

清理并重新生成应用程序:


npm start -- --reset-cache
npm run ios

更多回答

35 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com