0

How to set label in black color and asterisk (*) in red color.

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

By default label getting black, i need asterisk in red..

Thanks in advance <3

Allen Bert
  • 158
  • 2
  • 5
  • 20

2 Answers2

2
<FormLabel>{I18n.strings("account.nickname")}<Text style={{ color: 'red' }}>*</Text></FormLabel>
Tareq El-Masri
  • 2,413
  • 15
  • 23
2

I found this as simple

<Text style={styles.titleContainer}>Head category<Text style={{color:'red', justifyContent:'center'}}>*</=Text> </Text>
Mohd Qasim
  • 896
  • 9
  • 20