react-native-gifted-chat 3.2.3 → 3.3.0

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.
@@ -0,0 +1,181 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`should render <MessageReply /> and compare with snapshot 1`] = `
4
+ <View
5
+ accessibilityState={
6
+ {
7
+ "busy": undefined,
8
+ "checked": undefined,
9
+ "disabled": undefined,
10
+ "expanded": undefined,
11
+ "selected": undefined,
12
+ }
13
+ }
14
+ accessibilityValue={
15
+ {
16
+ "max": undefined,
17
+ "min": undefined,
18
+ "now": undefined,
19
+ "text": undefined,
20
+ }
21
+ }
22
+ accessible={true}
23
+ collapsable={false}
24
+ focusable={true}
25
+ onBlur={[Function]}
26
+ onClick={[Function]}
27
+ onFocus={[Function]}
28
+ onResponderGrant={[Function]}
29
+ onResponderMove={[Function]}
30
+ onResponderRelease={[Function]}
31
+ onResponderTerminate={[Function]}
32
+ onResponderTerminationRequest={[Function]}
33
+ onStartShouldSetResponder={[Function]}
34
+ >
35
+ <View
36
+ style={
37
+ [
38
+ {
39
+ "borderRadius": 8,
40
+ "marginBottom": 4,
41
+ "paddingHorizontal": 10,
42
+ "paddingVertical": 6,
43
+ },
44
+ {
45
+ "backgroundColor": "rgba(0, 0, 0, 0.06)",
46
+ "borderLeftColor": "#0084ff",
47
+ "borderLeftWidth": 3,
48
+ },
49
+ undefined,
50
+ undefined,
51
+ ]
52
+ }
53
+ >
54
+ <Text
55
+ numberOfLines={1}
56
+ style={
57
+ [
58
+ {
59
+ "fontWeight": "600",
60
+ "marginBottom": 2,
61
+ },
62
+ {
63
+ "color": "#0084ff",
64
+ },
65
+ undefined,
66
+ undefined,
67
+ ]
68
+ }
69
+ >
70
+ John Doe
71
+ </Text>
72
+ <Text
73
+ numberOfLines={2}
74
+ style={
75
+ [
76
+ {
77
+ "fontSize": 13,
78
+ },
79
+ {
80
+ "color": "#333",
81
+ },
82
+ undefined,
83
+ undefined,
84
+ ]
85
+ }
86
+ >
87
+ Original message text
88
+ </Text>
89
+ </View>
90
+ </View>
91
+ `;
92
+
93
+ exports[`should render <MessageReply /> on right position and compare with snapshot 1`] = `
94
+ <View
95
+ accessibilityState={
96
+ {
97
+ "busy": undefined,
98
+ "checked": undefined,
99
+ "disabled": undefined,
100
+ "expanded": undefined,
101
+ "selected": undefined,
102
+ }
103
+ }
104
+ accessibilityValue={
105
+ {
106
+ "max": undefined,
107
+ "min": undefined,
108
+ "now": undefined,
109
+ "text": undefined,
110
+ }
111
+ }
112
+ accessible={true}
113
+ collapsable={false}
114
+ focusable={true}
115
+ onBlur={[Function]}
116
+ onClick={[Function]}
117
+ onFocus={[Function]}
118
+ onResponderGrant={[Function]}
119
+ onResponderMove={[Function]}
120
+ onResponderRelease={[Function]}
121
+ onResponderTerminate={[Function]}
122
+ onResponderTerminationRequest={[Function]}
123
+ onStartShouldSetResponder={[Function]}
124
+ >
125
+ <View
126
+ style={
127
+ [
128
+ {
129
+ "borderRadius": 8,
130
+ "marginBottom": 4,
131
+ "paddingHorizontal": 10,
132
+ "paddingVertical": 6,
133
+ },
134
+ {
135
+ "backgroundColor": "rgba(255, 255, 255, 0.15)",
136
+ "borderLeftColor": "rgba(255, 255, 255, 0.6)",
137
+ "borderLeftWidth": 3,
138
+ },
139
+ undefined,
140
+ undefined,
141
+ ]
142
+ }
143
+ >
144
+ <Text
145
+ numberOfLines={1}
146
+ style={
147
+ [
148
+ {
149
+ "fontWeight": "600",
150
+ "marginBottom": 2,
151
+ },
152
+ {
153
+ "color": "rgba(255, 255, 255, 0.9)",
154
+ },
155
+ undefined,
156
+ undefined,
157
+ ]
158
+ }
159
+ >
160
+ You
161
+ </Text>
162
+ <Text
163
+ numberOfLines={2}
164
+ style={
165
+ [
166
+ {
167
+ "fontSize": 13,
168
+ },
169
+ {
170
+ "color": "rgba(255, 255, 255, 0.9)",
171
+ },
172
+ undefined,
173
+ undefined,
174
+ ]
175
+ }
176
+ >
177
+ Original message text
178
+ </Text>
179
+ </View>
180
+ </View>
181
+ `;
@@ -0,0 +1,403 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`should render <ReplyPreview /> and compare with snapshot 1`] = `
4
+ <View
5
+ collapsable={false}
6
+ jestAnimatedProps={
7
+ {
8
+ "value": {},
9
+ }
10
+ }
11
+ jestAnimatedStyle={
12
+ {
13
+ "value": {
14
+ "height": 0,
15
+ "opacity": 0,
16
+ "transform": [
17
+ {
18
+ "translateY": 10,
19
+ },
20
+ ],
21
+ },
22
+ }
23
+ }
24
+ jestInlineStyle={
25
+ [
26
+ {
27
+ "overflow": "hidden",
28
+ },
29
+ ]
30
+ }
31
+ nativeID="0"
32
+ style={
33
+ [
34
+ {
35
+ "overflow": "hidden",
36
+ },
37
+ {
38
+ "height": 0,
39
+ "opacity": 0,
40
+ "transform": [
41
+ {
42
+ "translateY": 10,
43
+ },
44
+ ],
45
+ },
46
+ ]
47
+ }
48
+ >
49
+ <View
50
+ onLayout={[Function]}
51
+ style={
52
+ [
53
+ {
54
+ "borderRadius": 8,
55
+ "flexDirection": "row",
56
+ "marginBottom": 8,
57
+ "marginHorizontal": 10,
58
+ "overflow": "hidden",
59
+ },
60
+ {
61
+ "backgroundColor": "#e9e9eb",
62
+ },
63
+ undefined,
64
+ ]
65
+ }
66
+ >
67
+ <View
68
+ style={
69
+ {
70
+ "backgroundColor": "#0084ff",
71
+ "borderTopLeftRadius": 4,
72
+ "height": "100%",
73
+ "width": 4,
74
+ }
75
+ }
76
+ />
77
+ <View
78
+ style={
79
+ {
80
+ "flex": 1,
81
+ "paddingHorizontal": 10,
82
+ "paddingVertical": 8,
83
+ }
84
+ }
85
+ >
86
+ <View
87
+ style={
88
+ {
89
+ "alignItems": "center",
90
+ "flexDirection": "row",
91
+ }
92
+ }
93
+ >
94
+ <View
95
+ style={
96
+ {
97
+ "flex": 1,
98
+ }
99
+ }
100
+ >
101
+ <Text
102
+ numberOfLines={1}
103
+ style={
104
+ {
105
+ "color": "#0084ff",
106
+ "fontSize": 13,
107
+ "fontWeight": "600",
108
+ "marginBottom": 2,
109
+ }
110
+ }
111
+ >
112
+ Replying to
113
+ John Doe
114
+ </Text>
115
+ <Text
116
+ numberOfLines={2}
117
+ style={
118
+ [
119
+ {
120
+ "fontSize": 14,
121
+ },
122
+ {
123
+ "color": "#333",
124
+ },
125
+ undefined,
126
+ ]
127
+ }
128
+ >
129
+ Original message to reply to
130
+ </Text>
131
+ </View>
132
+ </View>
133
+ </View>
134
+ <View
135
+ accessibilityState={
136
+ {
137
+ "busy": undefined,
138
+ "checked": undefined,
139
+ "disabled": undefined,
140
+ "expanded": undefined,
141
+ "selected": undefined,
142
+ }
143
+ }
144
+ accessibilityValue={
145
+ {
146
+ "max": undefined,
147
+ "min": undefined,
148
+ "now": undefined,
149
+ "text": undefined,
150
+ }
151
+ }
152
+ accessible={true}
153
+ collapsable={false}
154
+ focusable={true}
155
+ hitSlop={8}
156
+ onBlur={[Function]}
157
+ onClick={[Function]}
158
+ onFocus={[Function]}
159
+ onResponderGrant={[Function]}
160
+ onResponderMove={[Function]}
161
+ onResponderRelease={[Function]}
162
+ onResponderTerminate={[Function]}
163
+ onResponderTerminationRequest={[Function]}
164
+ onStartShouldSetResponder={[Function]}
165
+ style={
166
+ {
167
+ "alignItems": "center",
168
+ "borderRadius": 12,
169
+ "height": 24,
170
+ "justifyContent": "center",
171
+ "width": 24,
172
+ }
173
+ }
174
+ >
175
+ <Text
176
+ style={
177
+ [
178
+ {
179
+ "fontSize": 18,
180
+ "fontWeight": "600",
181
+ },
182
+ {
183
+ "color": "#333",
184
+ },
185
+ ]
186
+ }
187
+ >
188
+ ×
189
+ </Text>
190
+ </View>
191
+ </View>
192
+ </View>
193
+ `;
194
+
195
+ exports[`should render <ReplyPreview /> with image and compare with snapshot 1`] = `
196
+ <View
197
+ collapsable={false}
198
+ jestAnimatedProps={
199
+ {
200
+ "value": {},
201
+ }
202
+ }
203
+ jestAnimatedStyle={
204
+ {
205
+ "value": {
206
+ "height": 0,
207
+ "opacity": 0,
208
+ "transform": [
209
+ {
210
+ "translateY": 10,
211
+ },
212
+ ],
213
+ },
214
+ }
215
+ }
216
+ jestInlineStyle={
217
+ [
218
+ {
219
+ "overflow": "hidden",
220
+ },
221
+ ]
222
+ }
223
+ nativeID="1"
224
+ style={
225
+ [
226
+ {
227
+ "overflow": "hidden",
228
+ },
229
+ {
230
+ "height": 0,
231
+ "opacity": 0,
232
+ "transform": [
233
+ {
234
+ "translateY": 10,
235
+ },
236
+ ],
237
+ },
238
+ ]
239
+ }
240
+ >
241
+ <View
242
+ onLayout={[Function]}
243
+ style={
244
+ [
245
+ {
246
+ "borderRadius": 8,
247
+ "flexDirection": "row",
248
+ "marginBottom": 8,
249
+ "marginHorizontal": 10,
250
+ "overflow": "hidden",
251
+ },
252
+ {
253
+ "backgroundColor": "#e9e9eb",
254
+ },
255
+ undefined,
256
+ ]
257
+ }
258
+ >
259
+ <View
260
+ style={
261
+ {
262
+ "backgroundColor": "#0084ff",
263
+ "borderTopLeftRadius": 4,
264
+ "height": "100%",
265
+ "width": 4,
266
+ }
267
+ }
268
+ />
269
+ <View
270
+ style={
271
+ {
272
+ "flex": 1,
273
+ "paddingHorizontal": 10,
274
+ "paddingVertical": 8,
275
+ }
276
+ }
277
+ >
278
+ <View
279
+ style={
280
+ {
281
+ "alignItems": "center",
282
+ "flexDirection": "row",
283
+ }
284
+ }
285
+ >
286
+ <Image
287
+ source={
288
+ {
289
+ "uri": "https://example.com/image.jpg",
290
+ }
291
+ }
292
+ style={
293
+ [
294
+ {
295
+ "borderRadius": 4,
296
+ "height": 40,
297
+ "marginRight": 8,
298
+ "width": 40,
299
+ },
300
+ undefined,
301
+ ]
302
+ }
303
+ />
304
+ <View
305
+ style={
306
+ {
307
+ "flex": 1,
308
+ }
309
+ }
310
+ >
311
+ <Text
312
+ numberOfLines={1}
313
+ style={
314
+ {
315
+ "color": "#0084ff",
316
+ "fontSize": 13,
317
+ "fontWeight": "600",
318
+ "marginBottom": 2,
319
+ }
320
+ }
321
+ >
322
+ Replying to
323
+ John Doe
324
+ </Text>
325
+ <Text
326
+ numberOfLines={2}
327
+ style={
328
+ [
329
+ {
330
+ "fontSize": 14,
331
+ },
332
+ {
333
+ "color": "#333",
334
+ },
335
+ undefined,
336
+ ]
337
+ }
338
+ >
339
+ Original message to reply to
340
+ </Text>
341
+ </View>
342
+ </View>
343
+ </View>
344
+ <View
345
+ accessibilityState={
346
+ {
347
+ "busy": undefined,
348
+ "checked": undefined,
349
+ "disabled": undefined,
350
+ "expanded": undefined,
351
+ "selected": undefined,
352
+ }
353
+ }
354
+ accessibilityValue={
355
+ {
356
+ "max": undefined,
357
+ "min": undefined,
358
+ "now": undefined,
359
+ "text": undefined,
360
+ }
361
+ }
362
+ accessible={true}
363
+ collapsable={false}
364
+ focusable={true}
365
+ hitSlop={8}
366
+ onBlur={[Function]}
367
+ onClick={[Function]}
368
+ onFocus={[Function]}
369
+ onResponderGrant={[Function]}
370
+ onResponderMove={[Function]}
371
+ onResponderRelease={[Function]}
372
+ onResponderTerminate={[Function]}
373
+ onResponderTerminationRequest={[Function]}
374
+ onStartShouldSetResponder={[Function]}
375
+ style={
376
+ {
377
+ "alignItems": "center",
378
+ "borderRadius": 12,
379
+ "height": 24,
380
+ "justifyContent": "center",
381
+ "width": 24,
382
+ }
383
+ }
384
+ >
385
+ <Text
386
+ style={
387
+ [
388
+ {
389
+ "fontSize": 18,
390
+ "fontWeight": "600",
391
+ },
392
+ {
393
+ "color": "#333",
394
+ },
395
+ ]
396
+ }
397
+ >
398
+ ×
399
+ </Text>
400
+ </View>
401
+ </View>
402
+ </View>
403
+ `;
@@ -23,6 +23,7 @@ exports[`Send should always render <Send /> and compare with snapshot 1`] = `
23
23
  undefined,
24
24
  ]
25
25
  }
26
+ nativeID="1"
26
27
  pointerEvents="auto"
27
28
  style={
28
29
  [
@@ -93,6 +94,7 @@ exports[`Send should not render <Send /> and compare with snapshot 1`] = `
93
94
  undefined,
94
95
  ]
95
96
  }
97
+ nativeID="0"
96
98
  pointerEvents="none"
97
99
  style={
98
100
  [
@@ -163,6 +165,7 @@ exports[`Send should render <Send /> where there is input and compare with snaps
163
165
  undefined,
164
166
  ]
165
167
  }
168
+ nativeID="2"
166
169
  pointerEvents="auto"
167
170
  style={
168
171
  [