-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.d.ts
49 lines (35 loc) · 779 Bytes
/
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
import {ViewStyle} from 'react-native';
export interface ToggleProps {
/**
* Color of the switch
*/
color?: string,
/**
* Size of the switch
*/
size?: number,
/**
* Pass a true value if you want to use a filled color switch
*/
filled?: boolean
/**
* Color of the circle in switch
*/
circleColor?: string,
/**
* toggle status of the switch
*/
toggle?: boolean,
/**
* Function after switch on
*/
onTrue?: () => void,
/**
* Function after switch on
*/
onFalse?: () => void,
/**
* Function to set the status of toggle switch which will be stored in your local state
*/
setToggle: React.Dispatch<React.SetStateAction<undefined>>,
}