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
2 style={{ flexDirection: 'row' }}
3>
4 <Text style={{ flexShrink: 1 }}>
5 Really really long text...
6 </Text>
7</View>
1 subWarningText: {
2 color: '#5460C8',
3 fontWeight: Platform.OS === 'android' ? 'normal' : '400',
4 fontSize: 14 / fontScale,
5 marginLeft: scaleWidth(24),
6 marginRight: scaleWidth(10),
7 marginBottom: scaleHeight(276),
8 },