With React Native
,you just style your application using JavaScript
and you do not use a special language or syntax for defining styles. All of the React Native components
accept a prop named style
.
The style names and values usually match how CSS works on the web application
, except names are written using camel casing
, e.g backgroundColor
rather than background-color
.