1
1
// Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
3
- exports [` renders chip with icon 1` ] = `
3
+ exports [` renders chip with close button 1` ] = `
4
4
<View
5
5
style = {
6
6
Object {
@@ -104,20 +104,71 @@ exports[`renders chip with icon 1`] = `
104
104
Object {
105
105
" color" : " rgba(0, 0, 0, 0.87)" ,
106
106
" marginLeft" : 4 ,
107
- " marginRight" : 8 ,
107
+ " marginRight" : 4 ,
108
108
},
109
109
],
110
110
]
111
111
}
112
112
>
113
113
Example Chip
114
114
</Text >
115
+ <View
116
+ accessibilityComponentType = " button"
117
+ accessibilityTraits = " button"
118
+ accessible = { true }
119
+ onResponderGrant = { [Function ]}
120
+ onResponderMove = { [Function ]}
121
+ onResponderRelease = { [Function ]}
122
+ onResponderTerminate = { [Function ]}
123
+ onResponderTerminationRequest = { [Function ]}
124
+ onStartShouldSetResponder = { [Function ]}
125
+ style = {
126
+ Object {
127
+ " padding" : 4 ,
128
+ }
129
+ }
130
+ >
131
+ <Text
132
+ accessibilityElementsHidden = { true }
133
+ allowFontScaling = { false }
134
+ importantForAccessibility = " no-hide-descendants"
135
+ pointerEvents = " none"
136
+ style = {
137
+ Array [
138
+ Object {
139
+ " color" : " rgba(0, 0, 0, 0.54)" ,
140
+ " fontSize" : 16 ,
141
+ },
142
+ Array [
143
+ Object {
144
+ " transform" : Array [
145
+ Object {
146
+ " scaleX" : 1 ,
147
+ },
148
+ ],
149
+ },
150
+ Object {
151
+ " backgroundColor" : " transparent" ,
152
+ },
153
+ ],
154
+ Object {
155
+ " fontFamily" : " Material Icons" ,
156
+ " fontStyle" : " normal" ,
157
+ " fontWeight" : " normal" ,
158
+ },
159
+ Object {},
160
+ ]
161
+ }
162
+ >
163
+
164
+ </Text >
165
+ </View >
115
166
</View >
116
167
</View >
117
168
</View >
118
169
` ;
119
170
120
- exports [` renders chip with onPress 1` ] = `
171
+ exports [` renders chip with icon 1` ] = `
121
172
<View
122
173
style = {
123
174
Object {
@@ -156,6 +207,51 @@ exports[`renders chip with onPress 1`] = `
156
207
}
157
208
}
158
209
>
210
+ <View
211
+ style = {
212
+ Array [
213
+ Object {
214
+ " padding" : 4 ,
215
+ },
216
+ null ,
217
+ ]
218
+ }
219
+ >
220
+ <Text
221
+ accessibilityElementsHidden = { true }
222
+ allowFontScaling = { false }
223
+ importantForAccessibility = " no-hide-descendants"
224
+ pointerEvents = " none"
225
+ style = {
226
+ Array [
227
+ Object {
228
+ " color" : " rgba(0, 0, 0, 0.54)" ,
229
+ " fontSize" : 18 ,
230
+ },
231
+ Array [
232
+ Object {
233
+ " transform" : Array [
234
+ Object {
235
+ " scaleX" : 1 ,
236
+ },
237
+ ],
238
+ },
239
+ Object {
240
+ " backgroundColor" : " transparent" ,
241
+ },
242
+ ],
243
+ Object {
244
+ " fontFamily" : " Material Icons" ,
245
+ " fontStyle" : " normal" ,
246
+ " fontWeight" : " normal" ,
247
+ },
248
+ Object {},
249
+ ]
250
+ }
251
+ >
252
+
253
+ </Text >
254
+ </View >
159
255
<Text
160
256
numberOfLines = { 1 }
161
257
style = {
@@ -175,7 +271,7 @@ exports[`renders chip with onPress 1`] = `
175
271
},
176
272
Object {
177
273
" color" : " rgba(0, 0, 0, 0.87)" ,
178
- " marginLeft" : 8 ,
274
+ " marginLeft" : 4 ,
179
275
" marginRight" : 8 ,
180
276
},
181
277
],
@@ -189,7 +285,7 @@ exports[`renders chip with onPress 1`] = `
189
285
</View >
190
286
` ;
191
287
192
- exports [` renders deletable chip 1` ] = `
288
+ exports [` renders chip with onPress 1` ] = `
193
289
<View
194
290
style = {
195
291
Object {
@@ -228,51 +324,6 @@ exports[`renders deletable chip 1`] = `
228
324
}
229
325
}
230
326
>
231
- <View
232
- style = {
233
- Array [
234
- Object {
235
- " padding" : 4 ,
236
- },
237
- null ,
238
- ]
239
- }
240
- >
241
- <Text
242
- accessibilityElementsHidden = { true }
243
- allowFontScaling = { false }
244
- importantForAccessibility = " no-hide-descendants"
245
- pointerEvents = " none"
246
- style = {
247
- Array [
248
- Object {
249
- " color" : " rgba(0, 0, 0, 0.54)" ,
250
- " fontSize" : 18 ,
251
- },
252
- Array [
253
- Object {
254
- " transform" : Array [
255
- Object {
256
- " scaleX" : 1 ,
257
- },
258
- ],
259
- },
260
- Object {
261
- " backgroundColor" : " transparent" ,
262
- },
263
- ],
264
- Object {
265
- " fontFamily" : " Material Icons" ,
266
- " fontStyle" : " normal" ,
267
- " fontWeight" : " normal" ,
268
- },
269
- Object {},
270
- ]
271
- }
272
- >
273
-
274
- </Text >
275
- </View >
276
327
<Text
277
328
numberOfLines = { 1 }
278
329
style = {
@@ -292,7 +343,7 @@ exports[`renders deletable chip 1`] = `
292
343
},
293
344
Object {
294
345
" color" : " rgba(0, 0, 0, 0.87)" ,
295
- " marginLeft" : 4 ,
346
+ " marginLeft" : 8 ,
296
347
" marginRight" : 8 ,
297
348
},
298
349
],
0 commit comments