expo-linear-gradient
Version:
Provides a React component that renders a gradient view.
10 lines (9 loc) • 404 B
TypeScript
import * as React from 'react';
import { View } from 'react-native';
export declare type NativeLinearGradientProps = React.ComponentProps<typeof View> & React.PropsWithChildren<{
colors: number[];
locations?: number[] | null;
startPoint?: NativeLinearGradientPoint | null;
endPoint?: NativeLinearGradientPoint | null;
}>;
export declare type NativeLinearGradientPoint = [number, number];