UNPKG

react-native-linear-gradient

Version:
24 lines (17 loc) 575 B
// @flow import type { ElementConfig } from 'react'; import { requireNativeComponent, typeof View } from 'react-native'; /* $FlowFixMe */ export default requireNativeComponent('BVLinearGradient'); export type Point = $ReadOnly<{| x: number, y: number |}>; type LinearGradientProps = $ReadOnly<{| start?: Point; end?: Point; colors: $ReadOnlyArray<string>; locations?: $ReadOnlyArray<number>; useAngle?: boolean; angleCenter?: Point; angle?: number; |}>; type ViewProps = ElementConfig<View>; export type Props = {| ...LinearGradientProps, ...ViewProps |}