-
Notifications
You must be signed in to change notification settings - Fork 295
Expand file tree
/
Copy pathRNCSliderNativeComponent.ts
More file actions
45 lines (42 loc) · 1.34 KB
/
RNCSliderNativeComponent.ts
File metadata and controls
45 lines (42 loc) · 1.34 KB
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
import type {ColorValue, HostComponent, ViewProps} from 'react-native';
import {ImageSource, codegenNativeComponent} from 'react-native';
import type {
Float,
WithDefault,
DirectEventHandler,
BubblingEventHandler,
Double,
} from 'react-native/Libraries/Types/CodegenTypes';
type Event = Readonly<{
value: Float;
fromUser?: boolean;
}>;
export interface NativeProps extends ViewProps {
accessibilityUnits?: string;
accessibilityIncrements?: ReadonlyArray<string>;
disabled?: WithDefault<boolean, false>;
inverted?: WithDefault<boolean, false>;
vertical?: WithDefault<boolean, false>;
tapToSeek?: WithDefault<boolean, false>;
maximumTrackImage?: ImageSource;
maximumTrackTintColor?: ColorValue;
maximumValue?: Double;
minimumTrackImage?: ImageSource;
minimumTrackTintColor?: ColorValue;
minimumValue?: Double;
onChange?: BubblingEventHandler<Event>;
onRNCSliderSlidingStart?: DirectEventHandler<Event>;
onRNCSliderSlidingComplete?: DirectEventHandler<Event>;
onRNCSliderValueChange?: BubblingEventHandler<Event>;
step?: Double;
testID?: string;
thumbImage?: ImageSource;
thumbTintColor?: ColorValue;
trackImage?: ImageSource;
value?: Float;
lowerLimit?: Float;
upperLimit?: Float;
}
export default codegenNativeComponent<NativeProps>('RNCSlider', {
interfaceOnly: true,
}) as HostComponent<NativeProps>;