UNPKG

react-native-ui-lib

Version:

[![SWUbanner](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner-direct.svg)](https://stand-with-ukraine.pp.ua)

20 lines (19 loc) 557 B
import tinycolor from 'tinycolor2'; import React from 'react'; import { StyleProp, ViewStyle } from 'react-native'; export declare enum GradientTypes { HUE = "hue", LIGHTNESS = "lightness", SATURATION = "saturation" } export interface GradientProps { color?: string | tinycolor.ColorFormats.HSLA; type?: GradientTypes | `${GradientTypes}`; numberOfSteps: number; style?: StyleProp<ViewStyle>; } declare const Gradient: { (props: GradientProps): React.JSX.Element; types: typeof GradientTypes; }; export default Gradient;