UNPKG

1.06 kBTypeScriptView Raw
1import { ViewStyle } from "react-native";
2import { AbstractChartProps } from "../AbstractChart";
3import ContributionGraph, { ContributionChartValue, TooltipDataAttrs } from "./ContributionGraph";
4export interface ContributionGraphProps extends AbstractChartProps {
5 values: Array<any>;
6 endDate: Date;
7 numDays: number;
8 width: number;
9 height: number;
10 gutterSize?: number;
11 squareSize?: number;
12 horizontal?: boolean;
13 showMonthLabels?: boolean;
14 showOutOfRangeDays?: boolean;
15 accessor?: string;
16 getMonthLabel?: (monthIndex: number) => string;
17 onDayPress?: ({ count: number, date: Date }: {
18 count: any;
19 date: any;
20 }) => void;
21 classForValue?: (value: string) => string;
22 style?: Partial<ViewStyle>;
23 titleForValue?: (value: ContributionChartValue) => string;
24 tooltipDataAttrs: TooltipDataAttrs;
25}
26export declare type ContributionGraphState = {
27 maxValue: number;
28 minValue: number;
29 valueCache: object;
30};
31export default ContributionGraph;
32//# sourceMappingURL=index.d.ts.map
\No newline at end of file