react underline code example
Example 1: react-native italics
<Text style={styles.bold}>I'm bold!</Text>
<Text style={styles.italic}>I'm italic!</Text>
<Text style={styles.underline}>I'm underlined!</Text>
const styles = StyleSheet.create({
bold: {fontWeight: 'bold'},
italic: {fontStyle: 'italic'},
underline: {textDecorationLine: 'underline'}
})
Example 2: react link underline
<Link to="first" style={{ textDecoration: 'none' }}>
<MenuItem style={{ paddingLeft: 13 }}>Team 1</MenuItem>
</Link>
Example 3: react native italic text
<View flex={1}>
<Text style={style}>Example of Italic Text</Text>
</View>
const style = StyleSheet.create({
textAlign: 'center',
fontWeight: 'bold'
fontStyle: 'italic'
fontSize: 20,
});