expo-linear-gradient
Version:
Provides a React component that renders a gradient view.
9 lines • 731 B
TypeScript
import * as React from 'react';
import { ColorValue } from 'react-native';
import { NativeLinearGradientPoint, NativeLinearGradientProps } from './NativeLinearGradient.types';
export default function NativeLinearGradient({ colors, locations, startPoint, endPoint, ...props }: NativeLinearGradientProps): React.ReactElement;
/**
* Extracted to a separate function in order to be able to test logic independently.
*/
export declare function getLinearGradientBackgroundImage(colors: readonly ColorValue[], locations?: readonly number[] | null, startPoint?: NativeLinearGradientPoint | null, endPoint?: NativeLinearGradientPoint | null, width?: number, height?: number): string;
//# sourceMappingURL=NativeLinearGradient.web.d.ts.map