expo-linear-gradient
Version:
Provides a React component that renders a gradient view.
12 lines • 745 B
TypeScript
import { PropsWithChildren } from 'react';
import { ColorValue, ViewProps } from 'react-native';
export type NativeLinearGradientProps = ViewProps & PropsWithChildren<{
colors: readonly ColorValue[];
locations?: readonly number[] | null;
startPoint?: NativeLinearGradientPoint | null;
endPoint?: NativeLinearGradientPoint | null;
dither?: boolean;
}>;
export type getLinearGradientBackgroundImage = (colors: readonly ColorValue[], width?: number, height?: number, locations?: readonly number[] | null, startPoint?: NativeLinearGradientPoint | null, endPoint?: NativeLinearGradientPoint | null) => string;
export type NativeLinearGradientPoint = [x: number, y: number];
//# sourceMappingURL=NativeLinearGradient.types.d.ts.map