Skip to main content

Shadows & Linear Gradients

The main view component of Phaselis is the Block component. It can take shadow and linear gradient props to create dynamic, visually appealing designs.

How it works

The Block component uses react-native-linear-gradient for gradients and react-native-fast-shadow for shadows. You can pass shadow and gradient props to any Block component to enhance its style.

Example banner

note

for more information about the about shadow and linear gradient props, please refer to the ShadowProps and LinearGradientProps interfaces.