Skip to main content

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