Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React native textDecoration properties not working on Android

I am using on

<Text style={styles.sampleStyle}> Something </Text> 

the following styles:

sampleStyle: {     textDecorationLine: "underline",     textDecorationStyle: "solid",     textDecorationColor: "#000", } 

However, they don't seem to be working. What am I doing wrong?

like image 305
xtrinch Avatar asked Nov 29 '15 19:11

xtrinch


1 Answers

You didn't specify the style you want for your Text component. Try with :

<Text style={styles.sampleStyle} >Something </Text>  var styles = StyleSheet.create({   sampleStyle: {     textDecorationLine: "underline",     textDecorationStyle: "solid",     textDecorationColor: "#000"   } }); 
like image 171
G. Hamaide Avatar answered Sep 20 '22 13:09

G. Hamaide