UNPKG

expo-linear-gradient

Version:

Provides a React component that renders a gradient view.

23 lines (19 loc) 690 B
import { PropsWithChildren } from 'react'; import { ViewProps } from 'react-native'; export type NativeLinearGradientProps = ViewProps & PropsWithChildren<{ colors: readonly number[]; locations?: readonly number[] | null; startPoint?: NativeLinearGradientPoint | null; endPoint?: NativeLinearGradientPoint | null; dither?: boolean; }>; export type getLinearGradientBackgroundImage = ( colors: readonly number[], width?: number, height?: number, locations?: readonly number[] | null, startPoint?: NativeLinearGradientPoint | null, endPoint?: NativeLinearGradientPoint | null ) => string; export type NativeLinearGradientPoint = [x: number, y: number];