react-native-input-select 1.3.3 → 1.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/README.md +63 -53
  2. package/lib/commonjs/components/CheckBox/{types.js → checkbox.types.js} +1 -1
  3. package/lib/commonjs/components/CheckBox/checkbox.types.js.map +1 -0
  4. package/lib/commonjs/components/CheckBox/index.js +9 -28
  5. package/lib/commonjs/components/CheckBox/index.js.map +1 -1
  6. package/lib/commonjs/components/CustomModal/index.js +11 -7
  7. package/lib/commonjs/components/CustomModal/index.js.map +1 -1
  8. package/lib/commonjs/components/Dropdown/DropdownFlatList.js +7 -2
  9. package/lib/commonjs/components/Dropdown/DropdownFlatList.js.map +1 -1
  10. package/lib/commonjs/components/Dropdown/DropdownListItem.js +3 -1
  11. package/lib/commonjs/components/Dropdown/DropdownListItem.js.map +1 -1
  12. package/lib/commonjs/components/Dropdown/DropdownSectionList.js +7 -2
  13. package/lib/commonjs/components/Dropdown/DropdownSectionList.js.map +1 -1
  14. package/lib/commonjs/components/Others/index.js.map +1 -1
  15. package/lib/commonjs/index.js +16 -4
  16. package/lib/commonjs/index.js.map +1 -1
  17. package/lib/commonjs/types/index.types.js.map +1 -1
  18. package/lib/commonjs/utils/index.js.map +1 -1
  19. package/lib/module/components/CheckBox/checkbox.types.js +2 -0
  20. package/lib/module/components/CheckBox/checkbox.types.js.map +1 -0
  21. package/lib/module/components/CheckBox/index.js +9 -28
  22. package/lib/module/components/CheckBox/index.js.map +1 -1
  23. package/lib/module/components/CustomModal/index.js +11 -7
  24. package/lib/module/components/CustomModal/index.js.map +1 -1
  25. package/lib/module/components/Dropdown/DropdownFlatList.js +7 -2
  26. package/lib/module/components/Dropdown/DropdownFlatList.js.map +1 -1
  27. package/lib/module/components/Dropdown/DropdownListItem.js +3 -1
  28. package/lib/module/components/Dropdown/DropdownListItem.js.map +1 -1
  29. package/lib/module/components/Dropdown/DropdownSectionList.js +7 -2
  30. package/lib/module/components/Dropdown/DropdownSectionList.js.map +1 -1
  31. package/lib/module/components/Others/index.js.map +1 -1
  32. package/lib/module/index.js +16 -4
  33. package/lib/module/index.js.map +1 -1
  34. package/lib/module/types/index.types.js.map +1 -1
  35. package/lib/module/utils/index.js.map +1 -1
  36. package/lib/typescript/components/CheckBox/checkbox.types.d.ts +9 -0
  37. package/lib/typescript/components/CheckBox/index.d.ts +2 -19
  38. package/lib/typescript/components/CustomModal/index.d.ts +3 -1
  39. package/lib/typescript/components/Dropdown/DropdownFlatList.d.ts +1 -1
  40. package/lib/typescript/components/Dropdown/DropdownListItem.d.ts +1 -1
  41. package/lib/typescript/components/Dropdown/DropdownSectionList.d.ts +1 -1
  42. package/lib/typescript/components/Others/index.d.ts +3 -1
  43. package/lib/typescript/types/index.types.d.ts +46 -15
  44. package/lib/typescript/utils/index.d.ts +1 -1
  45. package/package.json +2 -2
  46. package/src/components/CheckBox/checkbox.types.ts +10 -0
  47. package/src/components/CheckBox/index.tsx +15 -26
  48. package/src/components/CustomModal/index.tsx +19 -11
  49. package/src/components/Dropdown/DropdownFlatList.tsx +5 -2
  50. package/src/components/Dropdown/DropdownListItem.tsx +2 -0
  51. package/src/components/Dropdown/DropdownSectionList.tsx +6 -3
  52. package/src/components/Others/index.tsx +5 -1
  53. package/src/index.tsx +14 -9
  54. package/src/types/index.types.ts +56 -15
  55. package/src/utils/index.ts +1 -1
  56. package/lib/commonjs/components/CheckBox/types.js.map +0 -1
  57. package/lib/module/components/CheckBox/types.js +0 -2
  58. package/lib/module/components/CheckBox/types.js.map +0 -1
  59. package/lib/typescript/components/CheckBox/types.d.ts +0 -18
  60. package/src/components/CheckBox/types.ts +0 -19
@@ -2,25 +2,7 @@ import React from 'react';
2
2
  import { Pressable, Text, StyleSheet, Image, View } from 'react-native';
3
3
  import { colors } from '../../styles/colors';
4
4
  import { CHECKBOX_SIZE } from '../../constants';
5
- import type { CheckboxProps } from './types';
6
-
7
- /**
8
- * Individual props `checkboxSize`, `checkboxStyle`, `checkboxLabelStyle` would be replaced in future releases
9
- * and replaced with a single object `checkboxComponentStyles` e.g
10
-
11
- ```js
12
- const checkboxComponentStyles = {
13
- checkboxSize: 20,
14
- checkboxStyle: {
15
- backgroundColor: 'purple',
16
- borderRadius: 30,
17
- padding: 10,
18
- borderColor: 'red',
19
- },
20
- checkboxLabelStyle: { color: 'red', fontSize: 20 },
21
- };
22
- ```
23
- */
5
+ import type { CheckboxProps } from './checkbox.types';
24
6
 
25
7
  const CheckBox = ({
26
8
  label,
@@ -32,22 +14,23 @@ const CheckBox = ({
32
14
  checkboxLabelStyle,
33
15
  checkboxComponentStyles,
34
16
  checkboxComponent,
17
+ checkboxControls,
35
18
  onChange,
36
19
  }: CheckboxProps) => {
37
- // const { checkboxSize, checkboxStyle, checkboxLabelStyle } =
38
- // checkboxComponentStyles || undefined;
39
20
  const fillColor = {
40
21
  backgroundColor: disabled
41
22
  ? '#d3d3d3'
42
23
  : value
43
- ? checkboxComponentStyles?.checkboxStyle?.backgroundColor ||
24
+ ? checkboxControls?.checkboxStyle?.backgroundColor ||
25
+ checkboxComponentStyles?.checkboxStyle?.backgroundColor ||
44
26
  checkboxStyle?.backgroundColor ||
45
27
  primaryColor ||
46
28
  'green'
47
29
  : 'white',
48
30
  borderColor: disabled
49
31
  ? colors.disabled
50
- : checkboxComponentStyles?.checkboxStyle?.borderColor ||
32
+ : checkboxControls?.checkboxStyle?.borderColor ||
33
+ checkboxComponentStyles?.checkboxStyle?.borderColor ||
51
34
  checkboxStyle?.borderColor ||
52
35
  styles.checkbox.borderColor,
53
36
  };
@@ -61,20 +44,24 @@ const CheckBox = ({
61
44
  <View
62
45
  style={[
63
46
  styles.checkbox,
64
- checkboxComponentStyles?.checkboxStyle || checkboxStyle,
47
+ checkboxControls?.checkboxStyle ||
48
+ checkboxComponentStyles?.checkboxStyle ||
49
+ checkboxStyle,
65
50
  fillColor,
66
51
  ]}
67
52
  >
68
- {checkboxComponent || (
53
+ {checkboxControls?.checkboxComponent || checkboxComponent || (
69
54
  <Image
70
55
  source={require('../../asset/check.png')}
71
56
  style={[
72
57
  {
73
58
  height:
59
+ checkboxControls?.checkboxSize ||
74
60
  checkboxComponentStyles?.checkboxSize ||
75
61
  checkboxSize ||
76
62
  CHECKBOX_SIZE,
77
63
  width:
64
+ checkboxControls?.checkboxSize ||
78
65
  checkboxComponentStyles?.checkboxSize ||
79
66
  checkboxSize ||
80
67
  CHECKBOX_SIZE,
@@ -86,7 +73,9 @@ const CheckBox = ({
86
73
  {label && label !== '' && (
87
74
  <Text
88
75
  style={[
89
- checkboxComponentStyles?.checkboxLabelStyle || checkboxLabelStyle,
76
+ checkboxControls?.checkboxLabelStyle ||
77
+ checkboxComponentStyles?.checkboxLabelStyle ||
78
+ checkboxLabelStyle,
90
79
  styles.labelStyle,
91
80
  ]}
92
81
  >
@@ -5,37 +5,45 @@ import {
5
5
  SafeAreaView,
6
6
  StyleSheet,
7
7
  TouchableWithoutFeedback,
8
+ ModalProps,
8
9
  } from 'react-native';
9
10
  import { colors } from '../../styles/colors';
11
+ import { TCustomModalControls } from 'src/types/index.types';
10
12
 
11
13
  const CustomModal = ({
12
- open,
14
+ visible,
13
15
  onRequestClose,
14
- modalBackgroundStyle,
15
- modalOptionsContainerStyle,
16
- modalProps,
16
+ modalBackgroundStyle, //kept for backwards compatibility
17
+ modalOptionsContainerStyle, //kept for backwards compatibility
18
+ modalControls,
19
+ modalProps, //kept for backwards compatibility
17
20
  children,
18
- }: any) => {
21
+ }: TCustomModalControls & ModalProps) => {
19
22
  return (
20
23
  <Modal
21
24
  transparent={true}
22
- visible={open}
23
- onRequestClose={() => onRequestClose()}
25
+ visible={visible}
26
+ onRequestClose={() => onRequestClose?.()}
24
27
  animationType="fade"
25
- {...modalProps}
28
+ {...modalControls?.modalProps}
29
+ {...modalProps} //kept for backwards compatibility
26
30
  >
27
31
  <TouchableOpacity
28
- onPress={() => onRequestClose()}
32
+ onPress={() => onRequestClose?.()}
29
33
  style={[
30
34
  styles.modalContainer,
31
35
  styles.modalBackgroundStyle,
32
- modalBackgroundStyle,
36
+ modalControls?.modalBackgroundStyle || modalBackgroundStyle,
33
37
  ]}
34
38
  >
35
39
  {/* Added this `TouchableWithoutFeedback` wrapper because of the closing modal on expo web */}
36
40
  <TouchableWithoutFeedback onPress={() => {}}>
37
41
  <SafeAreaView
38
- style={[styles.modalOptionsContainer, modalOptionsContainerStyle]}
42
+ style={[
43
+ styles.modalOptionsContainer,
44
+ modalControls?.modalOptionsContainerStyle ||
45
+ modalOptionsContainerStyle,
46
+ ]}
39
47
  >
40
48
  {children}
41
49
  </SafeAreaView>
@@ -21,6 +21,7 @@ const DropdownFlatList = ({
21
21
  checkboxLabelStyle, // kept for backwards compatibility to be removed in future release
22
22
  checkboxComponentStyles,
23
23
  checkboxComponent,
24
+ checkboxControls,
24
25
  listComponentStyles,
25
26
  listIndex,
26
27
  emptyListMessage,
@@ -74,8 +75,9 @@ const DropdownFlatList = ({
74
75
  checkboxSize, // kept for backwards compatibility
75
76
  checkboxStyle, // kept for backwards compatibility
76
77
  checkboxLabelStyle, // kept for backwards compatibility
77
- checkboxComponentStyles,
78
- checkboxComponent,
78
+ checkboxComponentStyles, // kept for backwards compatibility
79
+ checkboxComponent, // kept for backwards compatibility
80
+ checkboxControls,
79
81
  })
80
82
  }
81
83
  keyExtractor={(_item, index) => `Options${index}`}
@@ -106,6 +108,7 @@ const _renderItem = ({ item }: any, props: any) => {
106
108
  scrollToItem={props.scrollToItem}
107
109
  checkboxComponentStyles={props.checkboxComponentStyles}
108
110
  checkboxComponent={props.checkboxComponent}
111
+ checkboxControls={props.checkboxControls}
109
112
  />
110
113
  );
111
114
  };
@@ -15,6 +15,7 @@ const DropdownListItem = ({
15
15
  checkboxLabelStyle,
16
16
  checkboxComponentStyles,
17
17
  checkboxComponent,
18
+ checkboxControls,
18
19
  }: any) => {
19
20
  return (
20
21
  <TouchableOpacity
@@ -32,6 +33,7 @@ const DropdownListItem = ({
32
33
  label={item[optionLabel]}
33
34
  onChange={() => onChange(item[optionValue])}
34
35
  primaryColor={primaryColor}
36
+ checkboxControls={checkboxControls}
35
37
  checkboxSize={checkboxComponentStyles?.checkboxSize || checkboxSize}
36
38
  checkboxStyle={checkboxComponentStyles?.checkboxStyle || checkboxStyle}
37
39
  checkboxLabelStyle={
@@ -26,6 +26,7 @@ const DropdownSectionList = ({
26
26
  checkboxLabelStyle,
27
27
  checkboxComponentStyles,
28
28
  checkboxComponent,
29
+ checkboxControls,
29
30
  listComponentStyles,
30
31
  listIndex,
31
32
  emptyListMessage,
@@ -64,7 +65,7 @@ const DropdownSectionList = ({
64
65
  const sectionlistRef = useRef<SectionList<TSectionList>>(null);
65
66
 
66
67
  const scrollToLocation = (listIndex: any) => {
67
- sectionlistRef.current?.scrollToLocation({
68
+ sectionlistRef?.current?.scrollToLocation({
68
69
  sectionIndex: listIndex.sectionIndex,
69
70
  animated: true,
70
71
  itemIndex: listIndex.itemIndex,
@@ -109,8 +110,9 @@ const DropdownSectionList = ({
109
110
  checkboxSize, // kept for backwards compatibility
110
111
  checkboxStyle, // kept for backwards compatibility
111
112
  checkboxLabelStyle, // kept for backwards compatibility
112
- checkboxComponentStyles,
113
- checkboxComponent,
113
+ checkboxComponentStyles, // kept for backwards compatibility
114
+ checkboxComponent, // kept for backwards compatibility
115
+ checkboxControls,
114
116
  expandedSections,
115
117
  })
116
118
  }
@@ -155,6 +157,7 @@ const _renderItem = ({ section: { title }, item }: any, props: any) => {
155
157
  checkboxLabelStyle={props.checkboxLabelStyle}
156
158
  checkboxComponentStyles={props.checkboxComponentStyles}
157
159
  checkboxComponent={props.checkboxComponent}
160
+ checkboxControls={props.checkboxControls}
158
161
  />
159
162
  );
160
163
  };
@@ -23,7 +23,11 @@ export const ListEmptyComponent = ({
23
23
  );
24
24
  };
25
25
 
26
- export const ItemSeparatorComponent = ({ itemSeparatorStyle }: any) => {
26
+ export const ItemSeparatorComponent = ({
27
+ itemSeparatorStyle,
28
+ }: {
29
+ itemSeparatorStyle: ViewStyle;
30
+ }) => {
27
31
  return <View style={[styles.itemSeparatorStyle, itemSeparatorStyle]} />;
28
32
  };
29
33
 
package/src/index.tsx CHANGED
@@ -40,23 +40,25 @@ export const DropdownSelect: React.FC<DropdownProps> = ({
40
40
  dropdownHelperTextStyle,
41
41
  selectedItemStyle,
42
42
  multipleSelectedItemStyle,
43
- modalBackgroundStyle,
44
- modalOptionsContainerStyle,
43
+ modalBackgroundStyle, // kept for backwards compatibility
44
+ modalOptionsContainerStyle, // kept for backwards compatibility
45
45
  searchInputStyle, // kept for backwards compatibility
46
46
  primaryColor,
47
47
  disabled,
48
48
  checkboxSize, // kept for backwards compatibility
49
49
  checkboxStyle, // kept for backwards compatibility
50
50
  checkboxLabelStyle, // kept for backwards compatibility
51
- checkboxComponentStyles,
52
- checkboxComponent,
51
+ checkboxComponentStyles, // kept for backwards compatibility
52
+ checkboxComponent, // kept for backwards compatibility
53
53
  listHeaderComponent,
54
54
  listFooterComponent,
55
55
  listComponentStyles,
56
- modalProps,
56
+ modalProps, // kept for backwards compatibility
57
57
  hideModal = false,
58
58
  listControls,
59
59
  searchControls,
60
+ modalControls,
61
+ checkboxControls,
60
62
  ...rest
61
63
  }) => {
62
64
  const [newOptions, setNewOptions] = useState<TFlatList | TSectionList>([]);
@@ -347,11 +349,12 @@ export const DropdownSelect: React.FC<DropdownProps> = ({
347
349
  {...rest}
348
350
  />
349
351
  <CustomModal
350
- open={open}
351
- modalBackgroundStyle={modalBackgroundStyle}
352
- modalOptionsContainerStyle={modalOptionsContainerStyle}
352
+ visible={open}
353
+ modalBackgroundStyle={modalBackgroundStyle} // kept for backwards compatibility
354
+ modalOptionsContainerStyle={modalOptionsContainerStyle} // kept for backwards compatibility
353
355
  onRequestClose={() => handleToggleModal()}
354
- modalProps={modalProps}
356
+ modalControls={modalControls}
357
+ modalProps={modalProps} // kept for backwards compatibility
355
358
  >
356
359
  <ListTypeComponent
357
360
  ListHeaderComponent={
@@ -386,6 +389,7 @@ export const DropdownSelect: React.FC<DropdownProps> = ({
386
389
  }
387
390
  onChange={() => handleSelectAll()}
388
391
  primaryColor={primary}
392
+ checkboxControls={checkboxControls}
389
393
  checkboxSize={checkboxSize}
390
394
  checkboxStyle={checkboxStyle}
391
395
  checkboxLabelStyle={checkboxLabelStyle}
@@ -414,6 +418,7 @@ export const DropdownSelect: React.FC<DropdownProps> = ({
414
418
  checkboxLabelStyle={checkboxLabelStyle}
415
419
  checkboxComponentStyles={checkboxComponentStyles}
416
420
  checkboxComponent={checkboxComponent}
421
+ checkboxControls={checkboxControls}
417
422
  listIndex={listIndex}
418
423
  emptyListMessage={listControls?.emptyListMessage}
419
424
  />
@@ -6,11 +6,15 @@ import type {
6
6
  TextInputProps,
7
7
  } from 'react-native';
8
8
 
9
- export type DropdownProps = {
10
- placeholder?: string;
9
+ export type DropdownProps = CommonDropdownProps &
10
+ TDropdownInputProps &
11
+ TSearchControls &
12
+ TCheckboxControls &
13
+ TCustomModalControls &
14
+ TListControls;
15
+
16
+ export type CommonDropdownProps = {
11
17
  label?: string;
12
- error?: string;
13
- helperText?: string;
14
18
  options: TFlatList | TSectionList;
15
19
  optionLabel?: string;
16
20
  optionValue?: string;
@@ -23,6 +27,12 @@ export type DropdownProps = {
23
27
  | boolean[]
24
28
  | number[]
25
29
  | null;
30
+ };
31
+
32
+ export type TDropdownInputProps = {
33
+ placeholder?: string;
34
+ error?: string;
35
+ helperText?: string;
26
36
  isMultiple?: boolean;
27
37
  isSearchable?: boolean;
28
38
  dropdownIcon?: React.ReactNode;
@@ -35,25 +45,61 @@ export type DropdownProps = {
35
45
  dropdownHelperTextStyle?: TextStyle;
36
46
  selectedItemStyle?: TextStyle;
37
47
  multipleSelectedItemStyle?: TextStyle;
38
- modalBackgroundStyle?: ViewStyle;
39
- modalOptionsContainerStyle?: ViewStyle;
40
- searchInputStyle?: ViewStyle;
41
48
  primaryColor?: ColorValue;
42
49
  disabled?: boolean;
50
+ placeholderStyle?: TextStyle;
51
+ hideModal?: boolean;
52
+ };
53
+
54
+ export type TSearchControls = {
55
+ /** @deprecated Use `searchControls = {{textInputStyle: ViewStyle | TextStyle }}` instead.*/
56
+ searchInputStyle?: ViewStyle;
57
+ searchControls?: {
58
+ textInputStyle?: ViewStyle | TextStyle;
59
+ textInputContainerStyle?: ViewStyle;
60
+ textInputProps?: TextInputProps;
61
+ };
62
+ };
63
+ export type TCheckboxControls = {
64
+ /** @deprecated Use `checkboxControls = {{checkboxSize: number }}` instead.*/
43
65
  checkboxSize?: number;
66
+ /** @deprecated Use `checkboxControls = {{checkboxStyle: ViewStyle }}` instead.*/
44
67
  checkboxStyle?: ViewStyle;
68
+ /** @deprecated Use `checkboxControls = {{checkboxLabelStyle: TextStyle }}` instead.*/
45
69
  checkboxLabelStyle?: TextStyle;
70
+ /** @deprecated Use `checkboxControls` instead.*/
46
71
  checkboxComponentStyles?: {
47
72
  checkboxSize?: number;
48
73
  checkboxStyle?: ViewStyle;
49
74
  checkboxLabelStyle?: TextStyle;
50
75
  };
76
+ /** @deprecated Use `checkboxControls = {{checkboxComponent: <View></View> }}` instead.*/
51
77
  checkboxComponent?: React.ReactNode;
52
- placeholderStyle?: TextStyle;
78
+ checkboxControls?: {
79
+ checkboxSize?: number;
80
+ checkboxStyle?: ViewStyle;
81
+ checkboxLabelStyle?: TextStyle;
82
+ checkboxComponent?: React.ReactNode;
83
+ };
84
+ };
85
+
86
+ export type TCustomModalControls = {
87
+ /** @deprecated Use `modalControls = {{modalBackgroundStyle: ViewStyle}} instead.*/
88
+ modalBackgroundStyle?: ViewStyle;
89
+ /** @deprecated Use `modalControls = {{ modalOptionsContainerStyle: ViewStyle}} instead.*/
90
+ modalOptionsContainerStyle?: ViewStyle;
91
+ /** @deprecated Use `modalControls = {{modalProps: ModalProps }}` instead.*/
92
+ modalProps?: ModalProps;
93
+ modalControls?: {
94
+ modalBackgroundStyle?: ViewStyle;
95
+ modalOptionsContainerStyle?: ViewStyle;
96
+ modalProps?: ModalProps;
97
+ };
98
+ };
99
+
100
+ export type TListControls = {
53
101
  listHeaderComponent?: React.ReactNode;
54
102
  listFooterComponent?: React.ReactNode;
55
- hideModal?: boolean;
56
- modalProps?: ModalProps;
57
103
  listComponentStyles?: {
58
104
  listEmptyComponentStyle?: TextStyle;
59
105
  itemSeparatorStyle?: ViewStyle;
@@ -67,11 +113,6 @@ export type DropdownProps = {
67
113
  hideSelectAll?: boolean;
68
114
  emptyListMessage?: string;
69
115
  };
70
- searchControls?: {
71
- textInputStyle?: ViewStyle | TextStyle;
72
- textInputContainerStyle?: ViewStyle;
73
- textInputProps?: TextInputProps;
74
- };
75
116
  };
76
117
 
77
118
  export type TFlatList = TFlatListItem[];
@@ -2,7 +2,7 @@
2
2
  * Extract property from array
3
3
  */
4
4
 
5
- export const extractPropertyFromArray = (arr: any, property: string) => {
5
+ export const extractPropertyFromArray = (arr: any[], property: string) => {
6
6
  let extractedValue = arr?.map((item: any) => item[property]);
7
7
 
8
8
  return extractedValue;
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":["types.ts"],"sourcesContent":["import React from 'react';\nimport type { ColorValue, ViewStyle, TextStyle } from 'react-native';\n\nexport type CheckboxProps = {\n label?: string;\n value?: boolean;\n disabled?: boolean;\n primaryColor?: ColorValue;\n checkboxSize?: number;\n checkboxStyle?: ViewStyle;\n checkboxLabelStyle?: TextStyle;\n checkboxComponentStyles?: {\n checkboxSize?: number;\n checkboxStyle?: ViewStyle;\n checkboxLabelStyle?: TextStyle;\n };\n checkboxComponent?: React.ReactNode;\n onChange?: (value: boolean | string | number) => void;\n};\n"],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":["types.ts"],"sourcesContent":["import React from 'react';\nimport type { ColorValue, ViewStyle, TextStyle } from 'react-native';\n\nexport type CheckboxProps = {\n label?: string;\n value?: boolean;\n disabled?: boolean;\n primaryColor?: ColorValue;\n checkboxSize?: number;\n checkboxStyle?: ViewStyle;\n checkboxLabelStyle?: TextStyle;\n checkboxComponentStyles?: {\n checkboxSize?: number;\n checkboxStyle?: ViewStyle;\n checkboxLabelStyle?: TextStyle;\n };\n checkboxComponent?: React.ReactNode;\n onChange?: (value: boolean | string | number) => void;\n};\n"],"mappings":""}
@@ -1,18 +0,0 @@
1
- import React from 'react';
2
- import type { ColorValue, ViewStyle, TextStyle } from 'react-native';
3
- export type CheckboxProps = {
4
- label?: string;
5
- value?: boolean;
6
- disabled?: boolean;
7
- primaryColor?: ColorValue;
8
- checkboxSize?: number;
9
- checkboxStyle?: ViewStyle;
10
- checkboxLabelStyle?: TextStyle;
11
- checkboxComponentStyles?: {
12
- checkboxSize?: number;
13
- checkboxStyle?: ViewStyle;
14
- checkboxLabelStyle?: TextStyle;
15
- };
16
- checkboxComponent?: React.ReactNode;
17
- onChange?: (value: boolean | string | number) => void;
18
- };
@@ -1,19 +0,0 @@
1
- import React from 'react';
2
- import type { ColorValue, ViewStyle, TextStyle } from 'react-native';
3
-
4
- export type CheckboxProps = {
5
- label?: string;
6
- value?: boolean;
7
- disabled?: boolean;
8
- primaryColor?: ColorValue;
9
- checkboxSize?: number;
10
- checkboxStyle?: ViewStyle;
11
- checkboxLabelStyle?: TextStyle;
12
- checkboxComponentStyles?: {
13
- checkboxSize?: number;
14
- checkboxStyle?: ViewStyle;
15
- checkboxLabelStyle?: TextStyle;
16
- };
17
- checkboxComponent?: React.ReactNode;
18
- onChange?: (value: boolean | string | number) => void;
19
- };