@@ -81,7 +81,7 @@ export default class ChipScreen extends Component {
81
81
renderExample = ( text : string , chip : JSX . Element ) => {
82
82
return (
83
83
< View row spread marginB-12 >
84
- < Text text70 > { text } </ Text >
84
+ < Text text70 $textDefault > { text } </ Text >
85
85
{ chip }
86
86
</ View >
87
87
) ;
@@ -91,30 +91,34 @@ export default class ChipScreen extends Component {
91
91
return (
92
92
< View style = { { padding : 20 } } >
93
93
{ this . state . showDialog && this . renderPickerDialog ( ) }
94
- < Text marginB-20 text40 >
94
+ < Text marginB-20 text40 $textDefault >
95
95
Chip
96
96
</ Text >
97
- < Text marginB-10 text70BO >
97
+ < Text marginB-10 text70BO $textDefault >
98
98
Default
99
99
</ Text >
100
100
{ this . renderExample ( 'Label' , < Chip label = { 'Chip' } /> ) }
101
101
{ this . renderExample ( 'Label + onPress' , < Chip label = { 'Chip' } onPress = { ( ) => Alert . alert ( 'onPress' ) } /> ) }
102
102
{ this . renderExample ( 'Label + onDismiss' ,
103
103
< Chip
104
104
label = { 'Chip' }
105
- iconColor = { Colors . black }
105
+ iconProps = { { tintColor : Colors . $iconDefault } }
106
106
onDismiss = { ( ) => Alert . alert ( 'onDismiss' ) }
107
107
onPress = { ( ) => Alert . alert ( 'onPress' ) }
108
108
dismissIconStyle = { { width : 10 , height : 10 } }
109
109
/> ) }
110
110
{ this . renderExample ( 'Icon' ,
111
- < Chip iconSource = { checkmark } iconStyle = { { width : 24 , height : 24 } } iconProps = { { tintColor : Colors . black } } /> ) }
111
+ < Chip
112
+ iconSource = { checkmark }
113
+ iconStyle = { { width : 24 , height : 24 } }
114
+ iconProps = { { tintColor : Colors . $iconDefault } }
115
+ /> ) }
112
116
{ this . renderExample ( 'Left icon' ,
113
117
< Chip
114
118
label = { 'Chip' }
115
119
iconSource = { checkmark }
116
120
iconStyle = { { width : 24 , height : 24 } }
117
- iconProps = { { tintColor : Colors . black } }
121
+ iconProps = { { tintColor : Colors . $iconDefault } }
118
122
/> ) }
119
123
{ this . renderExample ( 'Right icon + onPress + dynamic label' ,
120
124
< Chip
@@ -135,7 +139,7 @@ export default class ChipScreen extends Component {
135
139
label : '4' ,
136
140
labelStyle : {
137
141
...Typography . text80R ,
138
- color : Colors . grey20
142
+ color : Colors . $textNeutralHeavy
139
143
}
140
144
} }
141
145
/> ) }
@@ -148,7 +152,7 @@ export default class ChipScreen extends Component {
148
152
} }
149
153
/> ) }
150
154
151
- < Text marginT-20 marginB-10 text70BO >
155
+ < Text marginT-20 marginB-10 text70BO $textDefault >
152
156
Custom
153
157
</ Text >
154
158
< View center row >
@@ -163,6 +167,7 @@ export default class ChipScreen extends Component {
163
167
iconSource = { checkmark }
164
168
label = { 'Chip' }
165
169
labelStyle = { { color : Colors . white } }
170
+ iconProps = { { tintColor : Colors . white } }
166
171
containerStyle = { { borderColor : Colors . green20 , backgroundColor : Colors . green20 , marginLeft : Spacings . s3 } }
167
172
/>
168
173
< Chip
@@ -171,7 +176,6 @@ export default class ChipScreen extends Component {
171
176
label = { 'Chip' }
172
177
labelStyle = { { color : Colors . red20 , marginHorizontal : Spacings . s3 , ...Typography . text70BO } }
173
178
iconStyle = { { width : 16 , height : 16 } }
174
- iconColor = { Colors . black }
175
179
avatarProps = { { source : avatarImage , size : 28 } }
176
180
onDismiss = { ( ) => Alert . alert ( 'onDismiss' ) }
177
181
dismissIconStyle = { { width : 10 , height : 10 , marginRight : Spacings . s3 } }
@@ -188,10 +192,10 @@ export default class ChipScreen extends Component {
188
192
labelStyle = { { marginRight : Spacings . s1 } }
189
193
badgeProps = { {
190
194
label : '44' ,
191
- backgroundColor : Colors . white ,
195
+ backgroundColor : Colors . $backgroundDefault ,
192
196
borderWidth : 2 ,
193
- borderColor : Colors . black ,
194
- labelStyle : { color : Colors . black }
197
+ borderColor : Colors . $backgroundInverted ,
198
+ labelStyle : { color : Colors . $textDefault }
195
199
} }
196
200
containerStyle = { {
197
201
borderWidth : 0 ,
0 commit comments