// @flow

import { requireNativeComponent, View } from 'react-native';

export default requireNativeComponent('BVLinearGradient', null);

export type Point = $Exact<{x: number, y: number}>;
export type Props = $Exact<{
  start?: Point;
  end?: Point;
  colors: string[];
  locations?: number[];
  useAngle?: boolean;
  angleCenter?: Point;
  angle?: number;
}> & typeof(View);

// @flow

import { requireNativeComponent, View } from 'react-native';

export default requireNativeComponent('BVLinearGradient', null);

export type Point = $Exact<{x: number, y: number}>;
type LinearGradientProps = {
  start?: Point;
  end?: Point;
  colors: string[];
  locations?: number[];
  useAngle?: boolean;
  angleCenter?: Point;
  angle?: number;
};

type ViewProps = typeof(View);

export type Props = {| ...LinearGradientProps, ...ViewProps |}

Fix up the flow declaration for intersection of lg props and view props
Fix up the flow declaration for intersection of lg props and view props
