-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
96 lines (90 loc) · 2.38 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
import * as React from 'react';
import { ViewStyle } from 'react-native';
export interface LinearGradientProps {
colors: string[] | number[];
start?: { x: number; y: number };
end?: { x: number; y: number };
locations?: number[];
useAngle?: boolean;
angleCenter?: { x: number; y: number };
angle?: number;
}
export interface StepsAsProps {
index?: number;
stepLabel?: string;
prefix?: string;
suffix?: string;
}
export interface MarkerProps {
pressed?: boolean;
pressedMarkerStyle?: ViewStyle;
markerStyle?: ViewStyle;
enabled?: boolean;
currentValue?: number;
valuePrefix?: string;
valueSuffix?: string;
}
export interface LabelProps {
oneMarkerValue?: string | number;
twoMarkerValue?: string | number;
minValue?: number;
maxValue?: number;
oneMarkerLeftPosition?: number;
twoMarkerLeftPosition?: number;
oneMarkerPressed?: boolean;
twoMarkerPressed?: boolean;
}
export interface MultiSliderProps {
values?: number[];
onValuesChange?: Function;
onValuesChangeStart?: Function;
onValuesChangeFinish?: Function;
gradientColors?: string[];
sliderLength?: number;
touchDimensions?: {
height: number;
width: number;
borderRadius: number;
slipDisplacement: number;
};
customMarker?: React.ElementType;
customMarkerLeft?: React.ElementType;
customMarkerRight?: React.ElementType;
customLabel?: React.ElementType;
isMarkersSeparated?: boolean;
min?: number;
max?: number;
step?: number;
stepsAs?: StepsAsProps[];
optionsArray?: number[];
containerStyle?: ViewStyle;
trackStyle?: ViewStyle;
selectedStyle?: ViewStyle;
unselectedStyle?: ViewStyle;
markerContainerStyle?: ViewStyle;
markerStyle?: ViewStyle;
pressedMarkerStyle?: ViewStyle;
stepStyle?: ViewStyle;
stepLabelStyle?: ViewStyle;
stepMarkerStyle?: ViewStyle;
valuePrefix?: string;
valueSuffix?: string;
showSteps?: boolean;
showStepMarkers?: boolean;
showStepLabels?: boolean;
enabledOne?: boolean;
enabledTwo?: boolean;
onToggleOne?: Function;
onToggleTwo?: Function;
allowOverlap?: boolean;
snapped?: boolean;
smoothSnapped?: boolean;
markerOffsetX?: number;
markerOffsetY?: number;
minMarkerOverlapDistance?: number;
minMarkerOverlapStepDistance?: number;
imageBackgroundSource?: string;
enableLabel?: boolean;
vertical?: boolean;
}
export default class MultiSlider extends React.Component<MultiSliderProps> {}