Documentation

DropShadow

Adds a soft shadow behind the child content based on its alpha silhouette

Props

colorstring
Default:#000000
Shadow color
distancenumber
Default:0.1
How far the shadow is offset from the content
anglenumber
Default:135
Direction the shadow is cast (compass degrees: 0=up, 90=right, 135=lower-right, 180=down)
blurnumber
Default:5
Shadow softness (blur radius in pixels)
intensitynumber
Default:0.5
Shadow intensity — how strong/visible the shadow is

Usage

<Shader>
  <DropShadow
    color="#000000"
    intensity={0.5}
  >
    <Circle />
  </DropShadow>
</Shader>