import { LinearGradient, Path, vec } from '@shopify/react-native-skia'; import { useChart } from '../LineChartContext'; export interface IProps { gradientColors?: string[]; } export type LineChartAreaPropsInterface = IProps; /** * Draws the background gradient fill. */ const ChartArea: React.FC = ({ gradientColors: _gradientColors }) => { const { areaPath, height, gradientColors, gradientPositions } = useChart(); _gradientColors = _gradientColors || gradientColors; return ( ); }; export default ChartArea;