react-native-graph-plus
Version:
📈 Beautiful, high-performance Graphs and Charts for React Native +
15 lines (14 loc) • 442 B
TypeScript
import { PanGesture } from 'react-native-gesture-handler';
import Reanimated from 'react-native-reanimated';
interface Config {
enabled: boolean;
holdDuration: number;
}
interface Result {
x: Reanimated.SharedValue<number>;
y: Reanimated.SharedValue<number>;
isActive: Reanimated.SharedValue<boolean>;
gesture: PanGesture;
}
export declare function usePanGesture({ enabled, holdDuration }: Config): Result;
export {};