React Native Shadow Generator
Design a React Native shadow for iOS and Android: copy the shadow props, elevation, boxShadow or a Platform.select snippet. Private.
Preview (approximate)
iOS
Android (elevation 7)
Code
Shortcuts: Ctrl+Enter run · Ctrl+Shift+C copy result · / search (use ⌘ on Mac)
Next steps
Done here? Use the Send to… menu on the result to carry it on to CSS to React Native.
Free React Native Shadow Generator for iOS and Android
Set the colour, blur, offset and opacity once and get the code for iOS, Android and the new boxShadow. Copy a ready Platform.select snippet. It gives developers a quick browser-based way to solve a focused react native shadow generator task before moving the result into a project.
How to design a shadow
Choose a preset or move the sliders. The two cards show an approximate iOS and Android shadow. Use the "Code" list to choose what to copy.
Elevation
Elevation is suggested from your iOS values. Pick your own number from 0 to 24 if you prefer.
Common mistakes
- Setting only shadow props and expecting Android to match: Android ignores them (apart from the colour) and needs elevation.
- Using overflow: hidden on the view that has the shadow: it clips the shadow away.