@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
-
Add the JavaScript library dependency in the
package.jsonfile: -
Reinstall package-lock.json file using the
npm installcommand.

