Answers for "react native fontweight"

1

font weight react native

subWarningText: {
    color: '#5460C8',
    fontWeight: Platform.OS === 'android' ? 'normal' : '400',
    fontSize: 14 / fontScale,
    marginLeft: scaleWidth(24),
    marginRight: scaleWidth(10),
    marginBottom: scaleHeight(276),
  },
Posted by: Guest on May-19-2021
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

Code answers related to "Javascript"

Browse Popular Code Answers by Language