@figliolia/rn-donut-chart
Version:
An animated donut/pie chart library
29 lines (28 loc) • 721 B
TypeScript
/// <reference types="react" />
import type { DonutProps } from "./types";
/**
* ### Donut Chart
*
* A component for creating beautiful responsive
* donuts using React Native
*
* ```tsx
* <DonutChart
* delay={0}
* duration={1500}
* strokeWidth={12}
* strokeLinecap="round"
* style={Styles.yourContrainerStyles}
* data={[{
* label: "rent",
* value: 2000,
* stroke: "rgb(228, 69, 69)",
* style: Styles.yourSVGStyles // such as shadow and stuff
* }]}
* easing={Easing.out(Easing.exp)}
* onMeasure={(dimensions: number) => {}}>
* {children}
* </DonutChart>
* ```
*/
export declare const DonutChart: import("react").NamedExoticComponent<DonutProps>;