你好,我想得到下划线只有2个字母,但获得全文如何得到下划线只有前2个字母,下面是我用的代码来获得文本下划线。
<Text
style={{
textDecorationLine: "underline",
textDecorationColor: "#F88022",
textDecorationStyle: "solid",
marginTop: SCREENHEIGHT * 0.08,
fontFamily: "Outfit-Regular",
fontSize: SCREENHEIGHT * 0.023,
color: "#0C0C0C",
}}
>
Contract Details
</Text>
2条答案
按热度按时间hof1towb1#
在文本组件内使用文本组件
e0bqpujr2#
使用此代码: