View Style Props
Exampleβ
Reference
Propsβ
backfaceVisibilityβ
| Type |
|---|
enum('visible', 'hidden') |
backgroundColorβ
| Type |
|---|
| color |
borderBottomColorβ
| Type |
|---|
| color |
borderBottomEndRadiusβ
| Type |
|---|
| number |
borderBottomLeftRadiusβ
| Type |
|---|
| number |
borderBottomRightRadiusβ
| Type |
|---|
| number |
borderBottomStartRadiusβ
| Type |
|---|
| number |
borderBottomWidthβ
| Type |
|---|
| number |
borderColorβ
| Type |
|---|
| color |
borderEndColorβ
| Type |
|---|
| color |
borderLeftColorβ
| Type |
|---|
| color |
borderLeftWidthβ
| Type |
|---|
| number |
borderRadiusβ
If the rounded border is not visible, try applying overflow: 'hidden' as well.
| Type |
|---|
| number |
borderRightColorβ
| Type |
|---|
| color |
borderRightWidthβ
| Type |
|---|
| number |
borderStartColorβ
| Type |
|---|
| color |
borderStyleβ
| Type |
|---|
enum('solid', 'dotted', 'dashed') |
borderTopColorβ
| Type |
|---|
| color |
borderTopEndRadiusβ
| Type |
|---|
| number |
borderTopLeftRadiusβ
| Type |
|---|
| number |
borderTopRightRadiusβ
| Type |
|---|
| number |
borderTopStartRadiusβ
| Type |
|---|
| number |
borderTopWidthβ
| Type |
|---|
| number |
borderWidthβ
| Type |
|---|
| number |
elevation Androidβ
Sets the elevation of a view, using Android's underlying elevation API. This adds a drop shadow to the item and affects z-order for overlapping views. Only supported on Android 5.0+, has no effect on earlier versions.
| Type |
|---|
| number |
opacityβ
| Type |
|---|
| number |