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 |