font variant react native code example
Example 1: 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,
});
Example 2: react native text capitalize
<Text> {'Test'.toUpperCase()} </Text>