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

react-native-gradient-background-skia

v1.0.12

Published

Extremely easy to create a React Native Component Library with both Stateful and Functional Component Examples.

Downloads

100

Readme

React Native Gradient Background Skia

A high-performance linear gradient component for React Native using Skia.

Gradient Examples

Why?

This package was created to address the limitations and maintenance issues with react-native-linear-gradient. While react-native-linear-gradient has been widely used, it has several drawbacks:

  • Not actively maintained for the latest React Native versions
  • Performance issues with complex gradients
  • Limited support for modern React Native features
  • Inconsistent behavior across different platforms

react-native-gradient-background-skia solves these problems by:

  • Using Skia, a high-performance 2D graphics library
  • Providing better performance for complex gradients
  • Ensuring consistent behavior across platforms
  • Being actively maintained for the latest React Native versions

Features

  • 🚀 High performance using Skia
  • 🎨 Smooth gradient transitions
  • 📱 Full screen background support
  • 🔄 Multiple gradient directions (horizontal, vertical, diagonal)
  • ⚡️ Customizable border radius
  • 🎯 Support for multiple color stops
  • 🌈 Beautiful color combinations

Installation

npm install react-native-gradient-background-skia
# or
yarn add react-native-gradient-background-skia

Usage

import GradientBackgroundSkia from 'react-native-gradient-background-skia';

// Basic usage
<GradientBackgroundSkia
  colors={['#FF6B6B', '#4ECDC4']}
  style={styles.gradient}
>
  <View style={styles.content}>
    <Text>Your content here</Text>
  </View>
</GradientBackgroundSkia>

// Vertical gradient
<GradientBackgroundSkia
  colors={['#A8E6CF', '#FFD3B6']}
  start={{ x: 0, y: 0 }}
  end={{ x: 0, y: 1 }}
  style={styles.gradient}
>
  <View style={styles.content}>
    <Text>Vertical gradient</Text>
  </View>
</GradientBackgroundSkia>

// Diagonal gradient with custom border radius
<GradientBackgroundSkia
  colors={['#FF9A9E', '#FAD0C4']}
  start={{ x: 0, y: 0 }}
  end={{ x: 1, y: 1 }}
  borderRadius={20}
  style={styles.gradient}
>
  <View style={styles.content}>
    <Text>Diagonal gradient with rounded corners</Text>
  </View>
</GradientBackgroundSkia>

// Three color gradient
<GradientBackgroundSkia
  colors={['#FF6B6B', '#4ECDC4', '#45B7D1']}
  style={styles.gradient}
>
  <View style={styles.content}>
    <Text>Three color gradient</Text>
  </View>
</GradientBackgroundSkia>

Props

| Prop | Type | Default | Description | | ----------------------- | ------------------------ | -------------- | ------------------------------------- | | colors | string[] | - | Array of colors for the gradient | | start | { x: number, y: number } | { x: 0, y: 0 } | Starting point of the gradient | | end | { x: number, y: number } | { x: 1, y: 0 } | Ending point of the gradient | | borderRadius | number | 0 | Border radius for all corners | | borderTopLeftRadius | number | 0 | Border radius for top left corner | | borderTopRightRadius | number | 0 | Border radius for top right corner | | borderBottomLeftRadius | number | 0 | Border radius for bottom left corner | | borderBottomRightRadius | number | 0 | Border radius for bottom right corner | | style | ViewStyle | - | Additional styles for the container |

Example

Check out the example project in the example directory for a complete implementation showcasing various gradient styles and configurations.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT