W3cubDocs

/React Native

Shadow Props

Reference

Props

shadowColor

Sets the drop shadow color.

This property will only work on Android API 28 and above. For similar functionality on lower Android APIs, use the elevation property.

Type
color

shadowOffset
iOS

Sets the drop shadow offset.

Type
object: {width: number,height: number}

shadowOpacity
iOS

Sets the drop shadow opacity (multiplied by the color's alpha component).

Type
number

shadowRadius
iOS

Sets the drop shadow blur radius.

Type
number

© 2022 Facebook Inc.
Licensed under the Creative Commons Attribution 4.0 International Public License.
https://reactnative.dev/docs/shadow-props