react-native/docs/shadow-props.md

84 lines
1015 B
Markdown

---
id: shadow-props
title: Shadow Props
layout: docs
category: APIs
permalink: docs/shadow-props.html
next: view
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 |