Answers for "react native bold text"

2

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,
});
Posted by: Guest on November-10-2020
1

color text react native

// Some code....
<Text 
	// Topic 2: Text Style
	style={styles.headline}>Hi, Lunox!
</Text>

// Some code....

headline: {
	color: 'white', // <-- The magic
	textAlign: 'center', // <-- The magic
	fontWeight: 'bold',
	fontSize: 50,
	backgroundColor: 'purple',
}
// Some code....

Look how I use it here:
https://github.com/Lunox-code/100dayscode-react.native/blob/master/App.js
Posted by: Guest on October-28-2020
0

native bold text

class color:
   BOLD = '\033[1m'
   END = '\033[0m'

print(color.BOLD + 'Hello World !' + color.END)
Posted by: Guest on October-23-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language