@@ -12,11 +12,11 @@ export declare type ChipsInputProps = TypographyModifiers & TextFieldProps & {
12
12
/**
13
13
* DEPRECATED: use chips instead. list of tags. can be string boolean or custom object when implementing getLabel
14
14
*/
15
- tags ?: Array < ChipType > ;
15
+ tags ?: ChipType [ ] ;
16
16
/**
17
17
* list of tags. can be string boolean or custom object when implementing getLabel
18
18
*/
19
- chips ?: Array < ChipsInputChipProps > ;
19
+ chips ?: ChipsInputChipProps [ ] ;
20
20
/**
21
21
* Style your chips
22
22
*/
@@ -26,19 +26,19 @@ export declare type ChipsInputProps = TypographyModifiers & TextFieldProps & {
26
26
*/
27
27
getLabel ?: ( tag : ChipType ) => any ;
28
28
/**
29
- * callback for custom rendering tag item
29
+ * DEPRECATED: use chips instead. callback for custom rendering tag item
30
30
*/
31
31
renderTag ?: ( tag : ChipType , index : number , shouldMarkTag : boolean , label : string ) => React . ReactElement ;
32
32
/**
33
33
* callback for onChangeTags event
34
34
*/
35
35
onChangeTags ?: ( ) => void ;
36
36
/**
37
- * callback for creating new tag out of input value (good for composing tag object)
37
+ * DEPRECATED: use chips instead. callback for creating new tag out of input value (good for composing tag object)
38
38
*/
39
39
onCreateTag ?: ( value : any ) => void ;
40
40
/**
41
- * callback for when pressing a tag in the following format (tagIndex, markedTagIndex) => {...}
41
+ * DEPRECATED: use chips instead. callback for when pressing a tag in the following format (tagIndex, markedTagIndex) => {...}
42
42
*/
43
43
onTagPress ?: ( index : number , toRemove ?: number ) => void ;
44
44
/**
@@ -97,7 +97,7 @@ declare type State = {
97
97
} ;
98
98
declare type OwnProps = ChipsInputProps & BaseComponentInjectedProps ;
99
99
/**
100
- * @description : Tags input component (chips)
100
+ * @description : Chips input component
101
101
* @modifiers : Typography
102
102
* @gif : https://github.com/wix/react-native-ui-lib/blob/master/demo/showcase/ChipsInput/ChipsInput.gif?raw=true
103
103
* @example : https://github.com/wix/react-native-ui-lib/blob/master/demo/src/screens/componentScreens/ChipsInputScreen.js
@@ -123,6 +123,7 @@ declare class ChipsInput extends Component<OwnProps, State> {
123
123
onChangeText : _ . DebouncedFunc < ( value : any ) => void > ;
124
124
onTagPress ( index : number ) : void ;
125
125
isLastTagMarked ( ) : boolean ;
126
+ removeTag : ( ) => void ;
126
127
onKeyPress : ( event : NativeSyntheticEvent < TextInputKeyPressEventData > ) => void ;
127
128
getLabel : ( item : ChipType ) => any ;
128
129
onFocus : ( ) => void ;
0 commit comments