Task path / input to outcome
How to generate a React Native shadow
- 01
Choose the target platform
Choose the Output API first: Legacy uses platform-specific iOS shadow properties or Android elevation, while boxShadow exports one outset shadow for supported React Native New Architecture Android 9+ apps. In Legacy mode, set Generated platform to iOS, Android, or Both; Both is the default.
- 02
Shape the iOS shadow
Pick a Shadow color, then set Offset X and Offset Y from -100 to 100 px, Opacity from 0 to 1 in steps of 0.01, and Radius from 0 to 100 px. Values outside a range are clamped to it automatically, so you can type freely without producing broken code.
- 03
Set the Android elevation
Adjust Elevation from 0 to 24. Android shadows come from elevation rather than offsets, so this value drives the Android half of the output while the iOS numbers leave it untouched. In Both mode the iOS controls remain active, so the two halves of the snippet can be tuned side by side.
- 04
Check the live preview
The Live preview card renders a browser box-shadow approximation of the selected platform, updated with every change. Load sample drops in an elevated indigo example if you want a stronger starting point than the subtle default.
- 05
Copy the generated code
Use Copy code or Download .ts to take the StyleSheet snippet — saved as toolars-react-native-shadow.ts — into your project. Reset restores the default shadow when you want to start over.