xxxxxxxxxx
// A StyleSheet is an abstraction similar to CSS StyleSheets
const styles = StyleSheet.create ({
myBeautifulStyle: {
marginTop: 20,
textAlign: 'center',
color: 'blue',
fontWeight: 'bold',
fontSize: 20
}
})
xxxxxxxxxx
Not exactly CSS, the style names and values usually match how CSS works on
the web, except names are written using camel casing, e.g. backgroundColor
instead of background-color.