File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -55,10 +55,6 @@ export type ChipPropTypes = ViewProps & TouchableOpacityProps & {
55
55
* Main Chip text
56
56
*/
57
57
label ?: string ;
58
- /**
59
- * Color of the label.
60
- */
61
- labelColor ?: string ;
62
58
/**
63
59
* Label's style
64
60
*/
@@ -135,7 +131,6 @@ const Chip: React.FC<ChipPropTypes> = ({
135
131
iconStyle,
136
132
label,
137
133
labelStyle,
138
- labelColor,
139
134
onPress,
140
135
resetSpacings,
141
136
size,
@@ -207,14 +202,13 @@ const Chip: React.FC<ChipPropTypes> = ({
207
202
text90M
208
203
numberOfLines = { 1 }
209
204
// @ts -ignore
210
- tintColor = { labelColor }
211
205
style = { [ styles . label , getMargins ( 'label' ) , labelStyle ] }
212
206
testID = { `${ testID } .label` }
213
207
>
214
- { label }
208
+ { ! ! label && label }
215
209
</ Text >
216
210
) ;
217
- } , [ label , labelColor , labelStyle ] ) ;
211
+ } , [ label , labelStyle ] ) ;
218
212
219
213
const getMargins = useCallback ( ( element : string ) : object | undefined => {
220
214
if ( ! resetSpacings ) {
You can’t perform that action at this time.
0 commit comments