Handitab

React Native Shadow Generator

Generate React Native shadow styles for iOS (shadowColor, shadowOffset, shadowOpacity, shadowRadius) and the Android elevation value.

About React Native Shadow Generator

React Native draws shadows differently on each platform. iOS uses four style properties: shadowColor, shadowOffset, shadowOpacity, and shadowRadius. Android ignores those and uses a single elevation number that the system turns into a shadow. This generator outputs one style object with both sets. The web preview is an approximation built with CSS box-shadow from the iOS values, so the Android result on a device will look different.

How to use React Native Shadow Generator

  1. Fill in "Shadow color", "Offset width", "Offset height" and "Opacity", and the other options.
  2. The result appears below and updates as you type.
  3. Copy the result with the copy button, or download it as a file where that is offered.

Questions about React Native Shadow Generator

Why does my shadow not appear on Android?

Android needs the elevation property and a background color on the same view. A transparent view casts no shadow. On Android 9 and later, shadowColor also tints the elevation shadow, but offset, opacity, and radius are ignored.

Runs in your browser. Page last updated .

More css and color tools

All 39 css and color tools