New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

expo-conic-gradient

Package Overview
Dependencies
Maintainers
0
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

expo-conic-gradient

conic/angular/sweep gradient view

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
10
decreased by-92.91%
Maintainers
0
Weekly downloads
 
Created
Source

expo-conic-gradient

Cover image

Installation

yarn add expo-conic-gradient

Usage

import { ConicGradientView } from "expo-conic-gradient";

export default () => {
  return (
      <ConicGradientView
        colors={["red", "orange", "yellow", "green", "blue"]}
      />
  );
};

API

import { ConicGradientView } from "expo-conic-gradient";

Props

nametypedefault
colorsstring[]
locationsnumber[][]
center[x: number, y: number][0.5, 0.5]
anglenumber0

colors

An array of colors representing the gradient stops. A minimum of two colors is required.

locations

An array of numbers in 0 - 1 range, matching the length of the colors array. Each number specifies the stop of the corresponding color. If omitted, the colors will be evenly spaced throughout the gradient.

center

An array of two numbers specifying the x and y coordinate of the center point of the gradient.

angle

A number that specifies the starting angle of the gradient.

License

MIT

Made with ♥️ by Jakub Grzywacz

Keywords

FAQs

Package last updated on 19 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc