@@ -15,41 +15,40 @@ import { CheckBoxIcon, CheckBoxIconProps } from './components/CheckBoxIcon';
15
15
import { fonts } from '../helpers/index-config' ;
16
16
import { defaultTheme , RneFunctionComponent } from '../helpers' ;
17
17
18
- export type CheckBoxProps = PressableProps &
19
- CheckBoxIconProps & {
20
- /** Specify React Native component for main button. */
21
- Component ?: typeof React . Component ;
18
+ export interface CheckBoxProps extends PressableProps , CheckBoxIconProps {
19
+ /** Specify React Native component for main button. */
20
+ Component ?: typeof React . Component ;
22
21
23
- /** Moves icon to right of text. */
24
- iconRight ?: boolean ;
22
+ /** Moves icon to right of text. */
23
+ iconRight ?: boolean ;
25
24
26
- /** Title of checkbox. */
27
- title ?: string | React . ReactElement < { } > ;
25
+ /** Title of checkbox. */
26
+ title ?: string | React . ReactElement < { } > ;
28
27
29
- /** Additional props for the title Text component. */
30
- titleProps ?: TextProps ;
28
+ /** Additional props for the title Text component. */
29
+ titleProps ?: TextProps ;
31
30
32
- /** Aligns checkbox to center. */
33
- center ?: boolean ;
31
+ /** Aligns checkbox to center. */
32
+ center ?: boolean ;
34
33
35
- /** Aligns checkbox to right. */
36
- right ?: boolean ;
34
+ /** Aligns checkbox to right. */
35
+ right ?: boolean ;
37
36
38
- /** Style of main container. */
39
- containerStyle ?: StyleProp < ViewStyle > ;
37
+ /** Style of main container. */
38
+ containerStyle ?: StyleProp < ViewStyle > ;
40
39
41
- /** Style for the wrapper of checkbox. */
42
- wrapperStyle ?: StyleProp < ViewStyle > ;
40
+ /** Style for the wrapper of checkbox. */
41
+ wrapperStyle ?: StyleProp < ViewStyle > ;
43
42
44
- /** Style of text. */
45
- textStyle ?: StyleProp < TextStyle > ;
43
+ /** Style of text. */
44
+ textStyle ?: StyleProp < TextStyle > ;
46
45
47
- /** Specify a custom checked message. */
48
- checkedTitle ?: string ;
46
+ /** Specify a custom checked message. */
47
+ checkedTitle ?: string ;
49
48
50
- /** Specify different font family. */
51
- fontFamily ?: string ;
52
- } ;
49
+ /** Specify different font family. */
50
+ fontFamily ?: string ;
51
+ }
53
52
54
53
/** CheckBoxes allow users to complete tasks that involve making choices such as selecting options, or switching settings - On or Off.
55
54
* It provides a clear visual of either a true or false choice. */
0 commit comments