@amazon-devices/expo-linear-gradient provides a native React view that transitions between multiple colors in a linear direction.
Installation
-
Add the JavaScript library dependency in the
package.jsonfile. -
Reinstall dependencies using the
npm installcommand.
Examples
API reference
Check out the dedicated documentation page for info about this library, API reference and more: Official Expo documentation for expo-linear-gradient.Components
Props
The following props are forLinearGradient.

