react-native-gifted-chat 3.2.3 → 3.3.2

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