Styles React Native
Styles React Native
React Native
Style
• React Native style application using JavaScript
• core components accept a prop named style
• style names and values usually match how CSS works on the web,
except names are written using camel casing,
• e.g. backgroundColor rather than background-color
• style prop can be a plain old JavaScript object OR an Array
• the last style in the array has precedence
Style Properties
• Border
• Margin
• Padding
• Text
Style Encapsulation
• React Native does not support Style Inheritence.
References
[1] Cheat Sheet: https://
github.com/vhpoet/react-native-styling-cheat-sheet