UNPKG

427 BTypeScriptView Raw
1import React, { FunctionComponent } from 'react';
2import { View } from 'react-native';
3declare type Props = {
4 colors: number[];
5 locations?: number[] | null;
6 startPoint?: Point | null;
7 endPoint?: Point | null;
8 onLayout?: Function;
9} & React.ComponentProps<typeof View>;
10declare type Point = [number, number];
11declare const NativeLinearGradient: FunctionComponent<Props>;
12export default NativeLinearGradient;