react-native-chart-kit
Version:
If you're looking to **build a website or a cross-platform mobile app** – we will be happy to help you! Send a note to clients@ui1.io and we will be in touch with you shortly.
32 lines • 1.06 kB
TypeScript
import { ViewStyle } from "react-native";
import { AbstractChartProps } from "../AbstractChart";
import ContributionGraph, { ContributionChartValue, TooltipDataAttrs } from "./ContributionGraph";
export interface ContributionGraphProps extends AbstractChartProps {
values: Array<any>;
endDate: Date;
numDays: number;
width: number;
height: number;
gutterSize?: number;
squareSize?: number;
horizontal?: boolean;
showMonthLabels?: boolean;
showOutOfRangeDays?: boolean;
accessor?: string;
getMonthLabel?: (monthIndex: number) => string;
onDayPress?: ({ count: number, date: Date }: {
count: any;
date: any;
}) => void;
classForValue?: (value: string) => string;
style?: Partial<ViewStyle>;
titleForValue?: (value: ContributionChartValue) => string;
tooltipDataAttrs: TooltipDataAttrs;
}
export declare type ContributionGraphState = {
maxValue: number;
minValue: number;
valueCache: object;
};
export default ContributionGraph;
//# sourceMappingURL=index.d.ts.map