-
Notifications
You must be signed in to change notification settings - Fork 72
Expand file tree
/
Copy pathToggleSwitch.d.ts
More file actions
28 lines (25 loc) · 864 Bytes
/
ToggleSwitch.d.ts
File metadata and controls
28 lines (25 loc) · 864 Bytes
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
declare module 'toggle-switch-react-native' {
import React from 'react';
import {ColorValue, StyleProp, TextStyle, ViewStyle} from 'react-native';
export type ToggleSwitchProps = {
isOn: boolean;
label?: string;
onColor?: ColorValue;
offColor?: ColorValue;
size?: 'large' | 'medium' | 'small';
labelStyle?: StyleProp<TextStyle>;
thumbOnStyle?: StyleProp<ViewStyle>;
thumbOffStyle?: StyleProp<ViewStyle>;
trackOnStyle?: StyleProp<ViewStyle>;
trackOffStyle?: StyleProp<ViewStyle>;
onToggle?: (isOn: boolean) => any;
icon?: React.ReactNode;
disabled?: boolean;
animationSpeed?: number;
useNativeDriver?: boolean;
circleColor?: ColorValue;
hitSlop?: null | Insets | number | undefined;
};
class ToggleSwitch extends React.Component<ToggleSwitchProps> {}
export default ToggleSwitch;
}