1<Text style={styles.bold}>I'm bold!</Text>
2<Text style={styles.italic}>I'm italic!</Text>
3<Text style={styles.underline}>I'm underlined!</Text>
4
5const styles = StyleSheet.create({
6 bold: {fontWeight: 'bold'},
7 italic: {fontStyle: 'italic'},
8 underline: {textDecorationLine: 'underline'}
9})
10
1<View flex={1}>
2 <Text style={style}>Example of Italic Text</Text>
3</View>
4
5const style = StyleSheet.create({
6 textAlign: 'center',
7 fontWeight: 'bold'
8 fontStyle: 'italic'
9 fontSize: 20,
10});