victory-native
Version:
A charting library for React Native with a focus on performance and customization.
21 lines (20 loc) • 586 B
TypeScript
import { type SharedValue } from "react-native-reanimated";
import { type Matrix4 } from "@shopify/react-native-skia";
export type ChartTransformState = {
panActive: SharedValue<boolean>;
zoomActive: SharedValue<boolean>;
origin: SharedValue<{
x: number;
y: number;
}>;
matrix: SharedValue<Matrix4>;
offset: SharedValue<Matrix4>;
};
type ChartTransformStateConfig = {
scaleX?: number;
scaleY?: number;
};
export declare const useChartTransformState: (config?: ChartTransformStateConfig) => {
state: ChartTransformState;
};
export {};