84 lines
1.0 KiB
Markdown
84 lines
1.0 KiB
Markdown
|
---
|
||
|
id: shadow-props
|
||
|
title: Shadow Props
|
||
|
layout: docs
|
||
|
category: APIs
|
||
|
permalink: docs/shadow-props.html
|
||
|
next: viewproptypes
|
||
|
previous: layout-props
|
||
|
---
|
||
|
### Props
|
||
|
|
||
|
- [`shadowColor`](docs/shadow-props.html#shadowcolor)
|
||
|
- [`shadowOffset`](docs/shadow-props.html#shadowoffset)
|
||
|
- [`shadowOpacity`](docs/shadow-props.html#shadowopacity)
|
||
|
- [`shadowRadius`](docs/shadow-props.html#shadowradius)
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
---
|
||
|
|
||
|
# Reference
|
||
|
|
||
|
## Props
|
||
|
|
||
|
### `shadowColor`
|
||
|
|
||
|
Sets the drop shadow color
|
||
|
|
||
|
|
||
|
| Type | Required | Platform |
|
||
|
| - | - | - |
|
||
|
| [color](docs/colors.html) | No | iOS |
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
---
|
||
|
|
||
|
### `shadowOffset`
|
||
|
|
||
|
Sets the drop shadow offset
|
||
|
|
||
|
|
||
|
| Type | Required | Platform |
|
||
|
| - | - | - |
|
||
|
| object: {width: number,height: number} | No | iOS |
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
---
|
||
|
|
||
|
### `shadowOpacity`
|
||
|
|
||
|
Sets the drop shadow opacity (multiplied by the color's alpha component)
|
||
|
|
||
|
|
||
|
| Type | Required | Platform |
|
||
|
| - | - | - |
|
||
|
| number | No | iOS |
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
---
|
||
|
|
||
|
### `shadowRadius`
|
||
|
|
||
|
Sets the drop shadow blur radius
|
||
|
|
||
|
|
||
|
| Type | Required | Platform |
|
||
|
| - | - | - |
|
||
|
| number | No | iOS |
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|