File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/components/primitives/Switch Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
import type { SwitchProps } from 'react-native' ;
2
- import type { StyledProps } from '../../../theme/types' ;
3
2
4
3
import type { CustomProps , ResponsiveValue } from '../../../components/types' ;
5
4
import type { ISizes } from '../../../theme/base/sizes' ;
6
5
import type { IColors } from '../../../theme/base/colors' ;
6
+ import type { InterfaceBoxProps } from '../Box' ;
7
7
8
8
export interface InterfaceSwitchProps
9
9
extends Omit < SwitchProps , 'tintColor' > ,
10
- StyledProps {
10
+ InterfaceBoxProps < ISwitchProps > {
11
11
/**
12
12
* The size (width and height) of the switch.
13
13
* @default md
@@ -28,7 +28,7 @@ export interface InterfaceSwitchProps
28
28
/**
29
29
* Function called when the state of the Switch changes.
30
30
*/
31
- onToggle ?: ( ) => any ;
31
+ onToggle ?: ( ... args : any ) => void ;
32
32
/**
33
33
* If true, set the Switch to the checked state.
34
34
*/
You can’t perform that action at this time.
0 commit comments