0

如何将标签设置为黑色,星号 (*) 设置为红色。

<FormLabel>{I18n.strings("account.nickname")}*</FormLabel>

默认标签变黑,我需要红色星号..

提前感谢<3

4

2 回答 2

2
<FormLabel>{I18n.strings("account.nickname")}<Text style={{ color: 'red' }}>*</Text></FormLabel>
于 2018-10-16T11:01:19.367 回答
1

我发现这很简单

<Text style={styles.titleContainer}>Head category<Text style={{color:'red', justifyContent:'center'}}>*</=Text> </Text>
于 2021-09-23T13:45:35.840 回答