Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Skip to main content
The @amazon-devices/react-linear-gradient library provides support on Vega for react-native-linear-gradient with a component for React Native apps. This library is a system-deployed and available to React Native for Vega apps without a separate installation process. The library is deployed as an autolinking library, which your app links to at runtime. The library is guaranteed to be compatible only with the version of React Native for Vega for which it’s built. When you uplevel your app’s version of React Native for Vega, consider the best practice of upleveling its library dependencies. For more information about this library and its API, see the README.md in the GitHub repo.

Installation

  1. Add the JavaScript library dependency in the package.json file:
  2. Reinstall the package-lock.json file using the npm install command.

Examples

The following example shows how to use the component to style text:

API support

Component API

Supported versions

Additional Resources

For information on other libraries, see Supported Third-Party Libraries and Services.
Last modified on September 30, 2025