UNPKG

victory-native

Version:

A charting library for React Native with a focus on performance and customization.

21 lines (20 loc) 1.03 kB
import * as React from "react"; import { type PathProps } from "@shopify/react-native-skia"; import type { PropsWithChildren } from "react"; import type { ChartBounds, PointsArray } from "../../types"; import { type PathAnimationConfig } from "../../hooks/useAnimatedPath"; import type { RoundedCorners } from "../../utils/createRoundedRectPath"; import { type BarLabelConfig } from "./BarGraphLabels"; type HorizontalBarPathProps = Partial<Pick<PathProps, "color" | "blendMode" | "opacity" | "antiAlias">>; type CartesianHorizontalBarProps = { points: PointsArray; chartBounds: ChartBounds; innerPadding?: number; animate?: PathAnimationConfig; roundedCorners?: RoundedCorners; barWidth?: number; barCount?: number; labels?: BarLabelConfig; } & HorizontalBarPathProps; export declare const HorizontalBar: ({ points, chartBounds, animate, innerPadding, roundedCorners, barWidth, barCount, labels, ...ops }: PropsWithChildren<CartesianHorizontalBarProps>) => React.JSX.Element | null; export {};