expo-conic-gradient

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
e

expo-conic-gradient

conic/angular/sweep gradient view

0.2.1
latest
70

Supply Chain Security

100

Vulnerability

85

Quality

81

Maintenance

100

License

Version published
Maintainers
1
Created
Issues
0

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

FAQs

Package last updated on 23 Jun 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