View Style Props
Exampleβ
Reference
Propsβ
borderRightColor
β
Type | Required |
---|---|
color | No |
backfaceVisibility
β
Type | Required |
---|---|
enum('visible', 'hidden') | No |
borderBottomColor
β
Type | Required |
---|---|
color | No |
borderBottomEndRadius
β
Type | Required |
---|---|
number | No |
borderBottomLeftRadius
β
Type | Required |
---|---|
number | No |
borderBottomRightRadius
β
Type | Required |
---|---|
number | No |
borderBottomStartRadius
β
Type | Required |
---|---|
number | No |
borderBottomWidth
β
Type | Required |
---|---|
number | No |
borderColor
β
Type | Required |
---|---|
color | No |
borderEndColor
β
Type | Required |
---|---|
color | No |
borderLeftColor
β
Type | Required |
---|---|
color | No |
borderLeftWidth
β
Type | Required |
---|---|
number | No |
borderRadius
β
If the rounded border is not visible, try applying overflow: 'hidden'
as well.
Type | Required |
---|---|
number | No |
backgroundColor
β
Type | Required |
---|---|
color | No |
borderRightWidth
β
Type | Required |
---|---|
number | No |
borderStartColor
β
Type | Required |
---|---|
color | No |
borderStyle
β
Type | Required |
---|---|
enum('solid', 'dotted', 'dashed') | No |
borderTopColor
β
Type | Required |
---|---|
color | No |
borderTopEndRadius
β
Type | Required |
---|---|
number | No |
borderTopLeftRadius
β
Type | Required |
---|---|
number | No |
borderTopRightRadius
β
Type | Required |
---|---|
number | No |
borderTopStartRadius
β
Type | Required |
---|---|
number | No |
borderTopWidth
β
Type | Required |
---|---|
number | No |
borderWidth
β
Type | Required |
---|---|
number | No |
opacity
β
Type | Required |
---|---|
number | No |
elevation
β
(Android-only) 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 | Required | Platform |
---|---|---|
number | No | Android |