This documentation is available as Markdown for AI agents and LLMs. See the full Markdown index or append .md to any documentation URL.
Expo LinearGradient
A universal React component that renders a gradient view.
expo-linear-gradient provides a native React view that transitions between multiple colors in a linear direction.
React Native also provides
experimental_backgroundImage(Android and iOS) andbackgroundImage(Web) style properties onViewcomponent that support CSS gradient syntax such aslinear-gradient()andradial-gradient(). This can be an alternative for gradient backgrounds without adding an extra dependency. Since this is an experimental property, if you encounter any issues, please report them to the React Native repository.
Installation
If you are installing this in an existing React Native app, make sure to install expo in your project.
Usage
API
import { LinearGradient } from 'expo-linear-gradient';
No API data file found, sorry!