UNPKG

@react-native-assets/slider

Version:

Lightweight slider for React-Native and React-Native-Web. A Range slider is included

20 lines (19 loc) 660 B
import React from 'react'; export declare type CustomMarkType = React.ComponentType<{ value: number; active: boolean; }>; declare type CustomMarksProps = { minimumValue: number; maximumValue: number; step: number; thumbRadius?: number; activeValues: number[]; inverted: boolean; vertical: boolean; }; declare const useCustomMarks: (CustomMark: CustomMarkType | undefined, { step, minimumValue, maximumValue, activeValues, thumbRadius, inverted, vertical }: CustomMarksProps) => { marks: JSX.Element[]; onLayoutUpdateMarks: (event: import("react-native").LayoutChangeEvent) => void; }; export default useCustomMarks;