View Style Props
Props
borderStyle
backfaceVisibility
borderBottomColor
borderBottomLeftRadius
borderBottomRightRadius
borderBottomWidth
borderColor
borderLeftColor
borderLeftWidth
borderRadius
borderRightColor
borderRightWidth
backgroundColor
borderTopColor
borderTopLeftRadius
borderTopRightRadius
borderTopWidth
borderWidth
opacity
overflow
shadowColor
shadowOffset
shadowOpacity
shadowRadius
elevation
Reference
Props
borderStyle
Type | Required |
---|---|
enum('solid', 'dotted', 'dashed') | No |
backfaceVisibility
Type | Required |
---|---|
enum('visible', 'hidden') | No |
borderBottomColor
Type | Required |
---|---|
color | No |
borderBottomLeftRadius
Type | Required |
---|---|
number | No |
borderBottomRightRadius
Type | Required |
---|---|
number | No |
borderBottomWidth
Type | Required |
---|---|
number | No |
borderColor
Type | Required |
---|---|
color | No |
borderLeftColor
Type | Required |
---|---|
color | No |
borderLeftWidth
Type | Required |
---|---|
number | No |
borderRadius
Type | Required |
---|---|
number | No |
borderRightColor
Type | Required |
---|---|
color | No |
borderRightWidth
Type | Required |
---|---|
number | No |
backgroundColor
Type | Required |
---|---|
color | No |
borderTopColor
Type | Required |
---|---|
color | No |
borderTopLeftRadius
Type | Required |
---|---|
number | No |
borderTopRightRadius
Type | Required |
---|---|
number | No |
borderTopWidth
Type | Required |
---|---|
number | No |
borderWidth
Type | Required |
---|---|
number | No |
opacity
Type | Required |
---|---|
number | No |
overflow
Type | Required |
---|---|
enum('visible', 'hidden') | No |
shadowColor
Type | Required |
---|---|
color | No |
shadowOffset
Type | Required |
---|---|
object: {width: number,height: number} | No |
shadowOpacity
Type | Required |
---|---|
number | No |
shadowRadius
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 |