UNPKG

expo-linear-gradient

Version:

Provides a React component that renders a gradient view.

13 lines (10 loc) 394 B
import * as React from 'react'; import { View } from 'react-native'; export type NativeLinearGradientProps = React.ComponentProps<typeof View> & React.PropsWithChildren<{ colors: number[]; locations?: number[] | null; startPoint?: NativeLinearGradientPoint | null; endPoint?: NativeLinearGradientPoint | null; }>; export type NativeLinearGradientPoint = [number, number];