npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@amazon-devices/react-linear-gradient

v2.0.1758683737

Published

A <LinearGradient> element for React Native Keplerscript

Readme

@amazon-devices/react-linear-gradient

@amazon-devices/react-linear-gradient provides support on Kepler for react-native-linear-gradient which provides a <LinearGradient> element for React Native applications.

This is a system-deployed library and is available to KeplerScript apps without a separate installation process. It is deployed as an autolinking library which your app links to at runtime. Compatibility is guaranteed only between the library and the version of KeplerScript for which it is built.

When you up level the version of KeplerScript with which your app is built, it a best practice to also uplevel the version of the library on which it is dependent.

Documentation

Check the original library documentation for more info about this library, API reference and more here: README.md.

Installation

  1. Add the JavaScript library dependency in the package.json file:
"dependencies": {
   ...
   "@amazon-devices/react-linear-gradient": "^2.0.0"
}
  1. Reinstall package-lock.json file using npm install command.

Examples

import * as React from 'react';
import { Component } from 'react';
import { StyleSheet, Text, View } from 'react-native';
import LinearGradient from '@amazon-devices/react-linear-gradient';

const styles = StyleSheet.create({
  linearGradient: {
    justifyContent: 'center',
    width: 500,
    height: 100,
    borderRadius: 5
  },
  buttonText: {
    fontSize: 18,
    fontFamily: 'Gill Sans',
    textAlign: 'center',
    margin: 10,
    color: '#ffffff',
    backgroundColor: 'transparent'
  }
});

export class LinearGradientScreen extends Component {
  render() {
    return (
      <View
        style={{
          flex: 1,
          backgroundColor: 'transparent',
          justifyContent: 'center',
          alignItems: 'center'
        }}>
        <LinearGradient
          colors={['#4c669f', '#3b5998', '#192f6a']}
          style={styles.linearGradient}>
          <Text style={styles.buttonText}>Sign in with Vega OS</Text>
        </LinearGradient>
      </View>
    );
  }
}

export default LinearGradientScreen;

API supported on Kepler

Component API

| Prop | Description | Default | Platform | | --- | --- | --- | --- | | colors | Mandatory - An array of at least two color values that represent gradient colors. Example: ['red', 'blue'] sets gradient from red to blue. | None | All | | start | An optional object of the following type: { x: number, y: number }. Coordinates declare the position that the gradient starts at, as a fraction of the overall size of the gradient, starting from the top left corner. Example: { x: 0.1, y: 0.1 } means that the gradient will start 10% from the top and 10% from the left. | None | All | | end | Same as start, but for the end of the gradient. | None | All | | locations | An optional array of numbers defining the location of each gradient color stop, mapping to the color with the same index in colors prop. Example: [0.1, 0.75, 1] means that first color will take 0% - 10%, second color will take 10% - 75% and finally third color will occupy 75% - 100%. | None | All | | useAngle | Used to turn on/off angle based calculation (as opposed to start/end) | None | All | | angle | The desired angle in degrees | None | All | | angleCenter | The center point of the angle (will control the weight and stretch of the gradient like it does in photoshop) | None | All |

Supported react-native-kepler versions

| version | @amazon-devices/react-native-kepler version | | ----------- | --------------------------------- | | 2.0.x+2.6.2 | 2.0.x+rn0.72.0 |