react-native-wagmi-charts
Version:
A sweet candlestick chart for React Native
34 lines • 1.68 kB
TypeScript
import * as React from 'react';
import { ViewProps } from 'react-native';
import { LongPressGestureHandler, LongPressGestureHandlerProps } from 'react-native-gesture-handler';
import Animated from 'react-native-reanimated';
import { CandlestickChartLineProps } from './Line';
type MinDurationOverride = LongPressGestureHandlerProps['minDurationMs'];
type MaxDistOverride = LongPressGestureHandlerProps['maxDist'];
type LongPressGestureHandlerOverride = Omit<LongPressGestureHandler, 'minDuration' | 'maxDist'> & {
/**
* Minimum time, expressed in milliseconds, that a finger must remain
* pressed on the corresponding view.
* @default 0
*/
minDuration?: MinDurationOverride;
/**
* Maximum distance, expressed in points, that defines how far the finger is
* allowed to travel during a long press gesture. If the finger travels
* further than the defined distance and the handler hasn't yet activated,
* it will fail to recognize the gesture.
* @default 999999
*/
maxDist?: MaxDistOverride;
};
type CandlestickChartCrosshairProps = LongPressGestureHandlerOverride & {
color?: string;
children?: React.ReactNode;
onCurrentXChange?: (value: number) => unknown;
horizontalCrosshairProps?: Animated.AnimateProps<ViewProps>;
verticalCrosshairProps?: Animated.AnimateProps<ViewProps>;
lineProps?: Partial<CandlestickChartLineProps>;
};
export declare function CandlestickChartCrosshair({ color, onCurrentXChange, children, horizontalCrosshairProps, verticalCrosshairProps, lineProps, ...props }: CandlestickChartCrosshairProps): React.JSX.Element;
export {};
//# sourceMappingURL=Crosshair.d.ts.map