Skip to main content
This is documentation for React Native 0.79, which is no longer in active development.
For up-to-date documentation, see the latest version (0.83).
Version: 0.79

DropShadowValue Object Type

The DropShadowValue object is taken by the filter style prop for the dropShadow function. It is comprised of 2 or 3 lengths and an optional color. These values collectively define the drop shadow's color, position, and blurriness.

Example

js
{
offsetX:10,
offsetY:-3,
standardDeviation:'15px',
color:'blue',
}

Keys and values

offsetX

The offset on the x-axis. This can be positive or negative. A positive value indicates right and negative indicates left.

TypeOptional
number | stringNo

offsetY

The offset on the y-axis. This can be positive or negative. A positive value indicates up and negative indicates down.

TypeOptional
number | stringNo

standardDeviation

Represents the standard deviation used in the Gaussian blur algorithm. The larger the value the blurrier the shadow is. Only non-negative values are valid. The default is 0.

TypeOptional
number | stringYes

color

The color of the shadow. The default is black.

TypeOptional
color Yes

Used by

AltStyle によって変換されたページ (->オリジナル) /