forked from githuboftigran/rn-range-slider
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
42 lines (40 loc) · 1.2 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import React from "react";
declare module "rn-range-slider" {
export interface RangeSliderProps {
rangeEnabled?: boolean;
disabled?: boolean;
valueType?: "number" | "time";
gravity?: "top" | "bottom" | "center";
min?: number | Date;
max?: number | Date;
step?: number | Date;
initialLowValue?: number | Date;
initialHighValue?: number | Date;
lineWidth?: number;
thumbRadius?: number;
thumbBorderWidth?: number;
labelStyle?: "none" | "bubble";
labelGapHeight?: number;
labelTailHeight?: number;
labelFontSize?: number;
labelBorderWidth?: number;
labelPadding?: number;
labelBorderRadius?: number;
textFormat?: string;
blankColor?: string;
selectionColor?: string;
thumbColor?: string;
thumbBorderColor?: string;
labelTextColor?: string;
labelBackgroundColor?: string;
labelBorderColor?: string;
onTouchStart?: () => void;
onTouchEnd?: () => void;
onValueChanged?:
| ((lowValue: number, highValue: number, fromUser: boolean) => void)
| ((lowValue: Date, highValue: Date, fromUser: boolean) => void);
}
export default class RangeSlider extends React.PureComponent<
RangeSliderProps
> {}
}