react-native-gifted-chat 2.8.2-alpha.0 → 2.8.2-alpha.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.
Files changed (203) hide show
  1. package/README.md +51 -31
  2. package/package.json +28 -30
  3. package/src/Actions.tsx +1 -1
  4. package/src/Avatar.tsx +1 -1
  5. package/src/Bubble/index.tsx +24 -20
  6. package/src/Bubble/types.ts +7 -6
  7. package/src/Composer.tsx +19 -26
  8. package/src/Constant.ts +0 -1
  9. package/src/Day/index.tsx +3 -3
  10. package/src/GiftedAvatar.tsx +31 -38
  11. package/src/GiftedChat/index.tsx +59 -106
  12. package/src/GiftedChat/styles.ts +3 -0
  13. package/src/GiftedChat/types.ts +17 -67
  14. package/src/InputToolbar.tsx +27 -10
  15. package/src/LoadEarlier.tsx +22 -20
  16. package/src/Message/index.tsx +4 -18
  17. package/src/Message/types.ts +2 -2
  18. package/src/MessageAudio.tsx +19 -7
  19. package/src/MessageContainer/components/DayAnimated/index.tsx +16 -11
  20. package/src/MessageContainer/components/Item/index.tsx +10 -4
  21. package/src/MessageContainer/components/Item/types.ts +1 -1
  22. package/src/MessageContainer/index.tsx +57 -38
  23. package/src/MessageContainer/types.ts +32 -7
  24. package/src/MessageImage.tsx +132 -18
  25. package/src/MessageText.tsx +24 -64
  26. package/src/MessageVideo.tsx +19 -7
  27. package/src/QuickReplies.tsx +19 -12
  28. package/src/Send.tsx +10 -5
  29. package/src/SystemMessage.tsx +10 -3
  30. package/src/Time.tsx +10 -3
  31. package/src/TypingIndicator/index.tsx +4 -3
  32. package/src/TypingIndicator/types.ts +3 -0
  33. package/src/__tests__/Actions.test.tsx +3 -4
  34. package/src/__tests__/Avatar.test.tsx +5 -6
  35. package/src/__tests__/Bubble.test.tsx +14 -19
  36. package/src/__tests__/Composer.test.tsx +3 -4
  37. package/src/__tests__/Day.test.tsx +5 -8
  38. package/src/__tests__/DayAnimated.test.tsx +12 -14
  39. package/src/__tests__/GiftedAvatar.test.tsx +3 -8
  40. package/src/__tests__/GiftedChat.test.tsx +34 -43
  41. package/src/__tests__/InputToolbar.test.tsx +3 -4
  42. package/src/__tests__/LoadEarlier.test.tsx +3 -4
  43. package/src/__tests__/Message.test.tsx +51 -58
  44. package/src/__tests__/MessageContainer.test.tsx +39 -5
  45. package/src/__tests__/MessageImage.test.tsx +12 -15
  46. package/src/__tests__/MessageText.test.tsx +7 -4
  47. package/src/__tests__/Send.test.tsx +7 -8
  48. package/src/__tests__/SystemMessage.test.tsx +12 -15
  49. package/src/__tests__/Time.test.tsx +5 -8
  50. package/src/__tests__/__snapshots__/Actions.test.tsx.snap +39 -7
  51. package/src/__tests__/__snapshots__/Bubble.test.tsx.snap +48 -50
  52. package/src/__tests__/__snapshots__/Composer.test.tsx.snap +1 -2
  53. package/src/__tests__/__snapshots__/Constant.test.tsx.snap +0 -1
  54. package/src/__tests__/__snapshots__/GiftedChat.test.tsx.snap +20 -22
  55. package/src/__tests__/__snapshots__/InputToolbar.test.tsx.snap +2 -2
  56. package/src/__tests__/__snapshots__/LoadEarlier.test.tsx.snap +37 -6
  57. package/src/__tests__/__snapshots__/Message.test.tsx.snap +146 -150
  58. package/src/__tests__/__snapshots__/MessageImage.test.tsx.snap +32 -11
  59. package/src/__tests__/__snapshots__/MessageText.test.tsx.snap +12 -8
  60. package/src/__tests__/__snapshots__/Send.test.tsx.snap +72 -10
  61. package/src/components/TouchableOpacity.tsx +45 -0
  62. package/src/reanimatedCompat.ts +27 -0
  63. package/src/types.ts +4 -2
  64. package/src/utils.ts +2 -2
  65. package/lib/Actions.d.ts +0 -14
  66. package/lib/Actions.js +0 -57
  67. package/lib/Actions.js.map +0 -1
  68. package/lib/Avatar.d.ts +0 -18
  69. package/lib/Avatar.js +0 -93
  70. package/lib/Avatar.js.map +0 -1
  71. package/lib/Bubble/index.d.ts +0 -6
  72. package/lib/Bubble/index.js +0 -242
  73. package/lib/Bubble/index.js.map +0 -1
  74. package/lib/Bubble/styles.d.ts +0 -69
  75. package/lib/Bubble/styles.js +0 -72
  76. package/lib/Bubble/styles.js.map +0 -1
  77. package/lib/Bubble/types.d.ts +0 -47
  78. package/lib/Bubble/types.js +0 -2
  79. package/lib/Bubble/types.js.map +0 -1
  80. package/lib/Color.d.ts +0 -18
  81. package/lib/Color.js +0 -18
  82. package/lib/Color.js.map +0 -1
  83. package/lib/Composer.d.ts +0 -20
  84. package/lib/Composer.js +0 -60
  85. package/lib/Composer.js.map +0 -1
  86. package/lib/Constant.d.ts +0 -10
  87. package/lib/Constant.js +0 -17
  88. package/lib/Constant.js.map +0 -1
  89. package/lib/Day/index.d.ts +0 -4
  90. package/lib/Day/index.js +0 -39
  91. package/lib/Day/index.js.map +0 -1
  92. package/lib/Day/styles.d.ts +0 -20
  93. package/lib/Day/styles.js +0 -22
  94. package/lib/Day/styles.js.map +0 -1
  95. package/lib/Day/types.d.ts +0 -9
  96. package/lib/Day/types.js +0 -2
  97. package/lib/Day/types.js.map +0 -1
  98. package/lib/GiftedAvatar.d.ts +0 -11
  99. package/lib/GiftedAvatar.js +0 -104
  100. package/lib/GiftedAvatar.js.map +0 -1
  101. package/lib/GiftedChat/index.d.ts +0 -26
  102. package/lib/GiftedChat/index.js +0 -317
  103. package/lib/GiftedChat/index.js.map +0 -1
  104. package/lib/GiftedChat/styles.d.ts +0 -6
  105. package/lib/GiftedChat/styles.js +0 -7
  106. package/lib/GiftedChat/styles.js.map +0 -1
  107. package/lib/GiftedChat/types.d.ts +0 -112
  108. package/lib/GiftedChat/types.js +0 -2
  109. package/lib/GiftedChat/types.js.map +0 -1
  110. package/lib/GiftedChatContext.d.ts +0 -9
  111. package/lib/GiftedChatContext.js +0 -9
  112. package/lib/GiftedChatContext.js.map +0 -1
  113. package/lib/InputToolbar.d.ts +0 -23
  114. package/lib/InputToolbar.js +0 -56
  115. package/lib/InputToolbar.js.map +0 -1
  116. package/lib/LoadEarlier.d.ts +0 -14
  117. package/lib/LoadEarlier.js +0 -45
  118. package/lib/LoadEarlier.js.map +0 -1
  119. package/lib/Message/index.d.ts +0 -6
  120. package/lib/Message/index.js +0 -80
  121. package/lib/Message/index.js.map +0 -1
  122. package/lib/Message/styles.d.ts +0 -21
  123. package/lib/Message/styles.js +0 -22
  124. package/lib/Message/styles.js.map +0 -1
  125. package/lib/Message/types.d.ts +0 -22
  126. package/lib/Message/types.js +0 -2
  127. package/lib/Message/types.js.map +0 -1
  128. package/lib/MessageAudio.d.ts +0 -2
  129. package/lib/MessageAudio.js +0 -14
  130. package/lib/MessageAudio.js.map +0 -1
  131. package/lib/MessageContainer/components/DayAnimated/index.d.ts +0 -5
  132. package/lib/MessageContainer/components/DayAnimated/index.js +0 -85
  133. package/lib/MessageContainer/components/DayAnimated/index.js.map +0 -1
  134. package/lib/MessageContainer/components/DayAnimated/styles.d.ts +0 -11
  135. package/lib/MessageContainer/components/DayAnimated/styles.js +0 -12
  136. package/lib/MessageContainer/components/DayAnimated/styles.js.map +0 -1
  137. package/lib/MessageContainer/components/DayAnimated/types.d.ts +0 -17
  138. package/lib/MessageContainer/components/DayAnimated/types.js +0 -2
  139. package/lib/MessageContainer/components/DayAnimated/types.js.map +0 -1
  140. package/lib/MessageContainer/components/Item/index.d.ts +0 -23
  141. package/lib/MessageContainer/components/Item/index.js +0 -88
  142. package/lib/MessageContainer/components/Item/index.js.map +0 -1
  143. package/lib/MessageContainer/components/Item/types.d.ts +0 -17
  144. package/lib/MessageContainer/components/Item/types.js +0 -2
  145. package/lib/MessageContainer/components/Item/types.js.map +0 -1
  146. package/lib/MessageContainer/index.d.ts +0 -6
  147. package/lib/MessageContainer/index.js +0 -235
  148. package/lib/MessageContainer/index.js.map +0 -1
  149. package/lib/MessageContainer/styles.d.ts +0 -35
  150. package/lib/MessageContainer/styles.js +0 -32
  151. package/lib/MessageContainer/styles.js.map +0 -1
  152. package/lib/MessageContainer/types.d.ts +0 -51
  153. package/lib/MessageContainer/types.js +0 -2
  154. package/lib/MessageContainer/types.js.map +0 -1
  155. package/lib/MessageImage.d.ts +0 -13
  156. package/lib/MessageImage.js +0 -30
  157. package/lib/MessageImage.js.map +0 -1
  158. package/lib/MessageText.d.ts +0 -19
  159. package/lib/MessageText.js +0 -69
  160. package/lib/MessageText.js.map +0 -1
  161. package/lib/MessageVideo.d.ts +0 -2
  162. package/lib/MessageVideo.js +0 -14
  163. package/lib/MessageVideo.js.map +0 -1
  164. package/lib/QuickReplies.d.ts +0 -15
  165. package/lib/QuickReplies.js +0 -101
  166. package/lib/QuickReplies.js.map +0 -1
  167. package/lib/Send.d.ts +0 -15
  168. package/lib/Send.js +0 -34
  169. package/lib/Send.js.map +0 -1
  170. package/lib/SystemMessage.d.ts +0 -11
  171. package/lib/SystemMessage.js +0 -27
  172. package/lib/SystemMessage.js.map +0 -1
  173. package/lib/Time.d.ts +0 -11
  174. package/lib/Time.js +0 -56
  175. package/lib/Time.js.map +0 -1
  176. package/lib/TypingIndicator/index.d.ts +0 -5
  177. package/lib/TypingIndicator/index.js +0 -94
  178. package/lib/TypingIndicator/index.js.map +0 -1
  179. package/lib/TypingIndicator/styles.d.ts +0 -20
  180. package/lib/TypingIndicator/styles.js +0 -22
  181. package/lib/TypingIndicator/styles.js.map +0 -1
  182. package/lib/TypingIndicator/types.d.ts +0 -3
  183. package/lib/TypingIndicator/types.js +0 -2
  184. package/lib/TypingIndicator/types.js.map +0 -1
  185. package/lib/hooks/useUpdateLayoutEffect.d.ts +0 -8
  186. package/lib/hooks/useUpdateLayoutEffect.js +0 -17
  187. package/lib/hooks/useUpdateLayoutEffect.js.map +0 -1
  188. package/lib/index.d.ts +0 -4
  189. package/lib/index.js +0 -5
  190. package/lib/index.js.map +0 -1
  191. package/lib/logging.d.ts +0 -2
  192. package/lib/logging.js +0 -5
  193. package/lib/logging.js.map +0 -1
  194. package/lib/styles.d.ts +0 -10
  195. package/lib/styles.js +0 -11
  196. package/lib/styles.js.map +0 -1
  197. package/lib/types.d.ts +0 -67
  198. package/lib/types.js +0 -2
  199. package/lib/types.js.map +0 -1
  200. package/lib/utils.d.ts +0 -5
  201. package/lib/utils.js +0 -83
  202. package/lib/utils.js.map +0 -1
  203. package/src/__tests__/__snapshots__/MessageContainer.test.tsx.snap +0 -108
@@ -54,7 +54,6 @@ exports[`Message component should render <Message /> and compare with snapshot 1
54
54
  }
55
55
  >
56
56
  <View
57
- accessibilityRole="text"
58
57
  accessibilityState={
59
58
  {
60
59
  "busy": undefined,
@@ -64,9 +63,20 @@ exports[`Message component should render <Message /> and compare with snapshot 1
64
63
  "selected": undefined,
65
64
  }
66
65
  }
66
+ accessibilityValue={
67
+ {
68
+ "max": undefined,
69
+ "min": undefined,
70
+ "now": undefined,
71
+ "text": undefined,
72
+ }
73
+ }
67
74
  accessible={true}
75
+ collapsable={false}
68
76
  focusable={true}
77
+ onBlur={[Function]}
69
78
  onClick={[Function]}
79
+ onFocus={[Function]}
70
80
  onResponderGrant={[Function]}
71
81
  onResponderMove={[Function]}
72
82
  onResponderRelease={[Function]}
@@ -75,93 +85,81 @@ exports[`Message component should render <Message /> and compare with snapshot 1
75
85
  onStartShouldSetResponder={[Function]}
76
86
  >
77
87
  <View>
78
- <View
79
- style={
80
- [
81
- {},
82
- undefined,
83
- ]
84
- }
85
- >
86
- <Text
88
+ <View>
89
+ <View
87
90
  style={
88
91
  [
89
92
  {
90
- "color": "black",
91
- "fontSize": 16,
92
- "lineHeight": 20,
93
93
  "marginBottom": 5,
94
94
  "marginLeft": 10,
95
95
  "marginRight": 10,
96
96
  "marginTop": 5,
97
97
  },
98
98
  undefined,
99
- undefined,
100
99
  ]
101
100
  }
102
101
  >
103
102
  <Text
103
+ link={true}
104
104
  style={
105
105
  [
106
- [
107
- {
108
- "color": "black",
109
- "fontSize": 16,
110
- "lineHeight": 20,
111
- "marginBottom": 5,
112
- "marginLeft": 10,
113
- "marginRight": 10,
114
- "marginTop": 5,
115
- },
116
- undefined,
117
- undefined,
118
- ],
106
+ {
107
+ "color": "black",
108
+ },
109
+ undefined,
119
110
  undefined,
120
111
  ]
121
112
  }
113
+ user={
114
+ {
115
+ "_id": 1,
116
+ }
117
+ }
122
118
  >
123
- test
119
+ <Text>
120
+ test
121
+ </Text>
124
122
  </Text>
125
- </Text>
123
+ </View>
126
124
  </View>
127
- </View>
128
- <View
129
- style={
130
- [
131
- {
132
- "flexDirection": "row",
133
- "justifyContent": "flex-start",
134
- },
135
- undefined,
136
- ]
137
- }
138
- >
139
125
  <View
140
126
  style={
141
127
  [
142
128
  {
143
- "marginBottom": 5,
144
- "marginLeft": 10,
145
- "marginRight": 10,
129
+ "flexDirection": "row",
130
+ "justifyContent": "flex-start",
146
131
  },
147
132
  undefined,
148
133
  ]
149
134
  }
150
135
  >
151
- <Text
136
+ <View
152
137
  style={
153
138
  [
154
139
  {
155
- "color": "#aaa",
156
- "fontSize": 10,
157
- "textAlign": "right",
140
+ "marginBottom": 5,
141
+ "marginLeft": 10,
142
+ "marginRight": 10,
158
143
  },
159
144
  undefined,
160
145
  ]
161
146
  }
162
147
  >
163
- 7:20 PM
164
- </Text>
148
+ <Text
149
+ style={
150
+ [
151
+ {
152
+ "color": "#aaa",
153
+ "fontSize": 10,
154
+ "textAlign": "right",
155
+ },
156
+ undefined,
157
+ ]
158
+ }
159
+ >
160
+ 7:20 PM
161
+ </Text>
162
+ </View>
165
163
  </View>
166
164
  </View>
167
165
  </View>
@@ -262,7 +260,6 @@ exports[`Message component should render <Message /> with Avatar 1`] = `
262
260
  }
263
261
  >
264
262
  <View
265
- accessibilityRole="text"
266
263
  accessibilityState={
267
264
  {
268
265
  "busy": undefined,
@@ -272,9 +269,20 @@ exports[`Message component should render <Message /> with Avatar 1`] = `
272
269
  "selected": undefined,
273
270
  }
274
271
  }
272
+ accessibilityValue={
273
+ {
274
+ "max": undefined,
275
+ "min": undefined,
276
+ "now": undefined,
277
+ "text": undefined,
278
+ }
279
+ }
275
280
  accessible={true}
281
+ collapsable={false}
276
282
  focusable={true}
283
+ onBlur={[Function]}
277
284
  onClick={[Function]}
285
+ onFocus={[Function]}
278
286
  onResponderGrant={[Function]}
279
287
  onResponderMove={[Function]}
280
288
  onResponderRelease={[Function]}
@@ -283,93 +291,82 @@ exports[`Message component should render <Message /> with Avatar 1`] = `
283
291
  onStartShouldSetResponder={[Function]}
284
292
  >
285
293
  <View>
286
- <View
287
- style={
288
- [
289
- {},
290
- undefined,
291
- ]
292
- }
293
- >
294
- <Text
294
+ <View>
295
+ <View
295
296
  style={
296
297
  [
297
298
  {
298
- "color": "black",
299
- "fontSize": 16,
300
- "lineHeight": 20,
301
299
  "marginBottom": 5,
302
300
  "marginLeft": 10,
303
301
  "marginRight": 10,
304
302
  "marginTop": 5,
305
303
  },
306
304
  undefined,
307
- undefined,
308
305
  ]
309
306
  }
310
307
  >
311
308
  <Text
309
+ link={true}
310
+ showUserAvatar={true}
312
311
  style={
313
312
  [
314
- [
315
- {
316
- "color": "black",
317
- "fontSize": 16,
318
- "lineHeight": 20,
319
- "marginBottom": 5,
320
- "marginLeft": 10,
321
- "marginRight": 10,
322
- "marginTop": 5,
323
- },
324
- undefined,
325
- undefined,
326
- ],
313
+ {
314
+ "color": "black",
315
+ },
316
+ undefined,
327
317
  undefined,
328
318
  ]
329
319
  }
320
+ user={
321
+ {
322
+ "_id": 1,
323
+ }
324
+ }
330
325
  >
331
- test
326
+ <Text>
327
+ test
328
+ </Text>
332
329
  </Text>
333
- </Text>
330
+ </View>
334
331
  </View>
335
- </View>
336
- <View
337
- style={
338
- [
339
- {
340
- "flexDirection": "row",
341
- "justifyContent": "flex-start",
342
- },
343
- undefined,
344
- ]
345
- }
346
- >
347
332
  <View
348
333
  style={
349
334
  [
350
335
  {
351
- "marginBottom": 5,
352
- "marginLeft": 10,
353
- "marginRight": 10,
336
+ "flexDirection": "row",
337
+ "justifyContent": "flex-start",
354
338
  },
355
339
  undefined,
356
340
  ]
357
341
  }
358
342
  >
359
- <Text
343
+ <View
360
344
  style={
361
345
  [
362
346
  {
363
- "color": "#aaa",
364
- "fontSize": 10,
365
- "textAlign": "right",
347
+ "marginBottom": 5,
348
+ "marginLeft": 10,
349
+ "marginRight": 10,
366
350
  },
367
351
  undefined,
368
352
  ]
369
353
  }
370
354
  >
371
- 7:20 PM
372
- </Text>
355
+ <Text
356
+ style={
357
+ [
358
+ {
359
+ "color": "#aaa",
360
+ "fontSize": 10,
361
+ "textAlign": "right",
362
+ },
363
+ undefined,
364
+ ]
365
+ }
366
+ >
367
+ 7:20 PM
368
+ </Text>
369
+ </View>
373
370
  </View>
374
371
  </View>
375
372
  </View>
@@ -431,7 +428,6 @@ exports[`Message component should render null if user has no Avatar 1`] = `
431
428
  }
432
429
  >
433
430
  <View
434
- accessibilityRole="text"
435
431
  accessibilityState={
436
432
  {
437
433
  "busy": undefined,
@@ -441,9 +437,20 @@ exports[`Message component should render null if user has no Avatar 1`] = `
441
437
  "selected": undefined,
442
438
  }
443
439
  }
440
+ accessibilityValue={
441
+ {
442
+ "max": undefined,
443
+ "min": undefined,
444
+ "now": undefined,
445
+ "text": undefined,
446
+ }
447
+ }
444
448
  accessible={true}
449
+ collapsable={false}
445
450
  focusable={true}
451
+ onBlur={[Function]}
446
452
  onClick={[Function]}
453
+ onFocus={[Function]}
447
454
  onResponderGrant={[Function]}
448
455
  onResponderMove={[Function]}
449
456
  onResponderRelease={[Function]}
@@ -452,93 +459,82 @@ exports[`Message component should render null if user has no Avatar 1`] = `
452
459
  onStartShouldSetResponder={[Function]}
453
460
  >
454
461
  <View>
455
- <View
456
- style={
457
- [
458
- {},
459
- undefined,
460
- ]
461
- }
462
- >
463
- <Text
462
+ <View>
463
+ <View
464
464
  style={
465
465
  [
466
466
  {
467
- "color": "black",
468
- "fontSize": 16,
469
- "lineHeight": 20,
470
467
  "marginBottom": 5,
471
468
  "marginLeft": 10,
472
469
  "marginRight": 10,
473
470
  "marginTop": 5,
474
471
  },
475
472
  undefined,
476
- undefined,
477
473
  ]
478
474
  }
479
475
  >
480
476
  <Text
477
+ link={true}
478
+ showUserAvatar={true}
481
479
  style={
482
480
  [
483
- [
484
- {
485
- "color": "black",
486
- "fontSize": 16,
487
- "lineHeight": 20,
488
- "marginBottom": 5,
489
- "marginLeft": 10,
490
- "marginRight": 10,
491
- "marginTop": 5,
492
- },
493
- undefined,
494
- undefined,
495
- ],
481
+ {
482
+ "color": "black",
483
+ },
484
+ undefined,
496
485
  undefined,
497
486
  ]
498
487
  }
488
+ user={
489
+ {
490
+ "_id": 1,
491
+ }
492
+ }
499
493
  >
500
- test
494
+ <Text>
495
+ test
496
+ </Text>
501
497
  </Text>
502
- </Text>
498
+ </View>
503
499
  </View>
504
- </View>
505
- <View
506
- style={
507
- [
508
- {
509
- "flexDirection": "row",
510
- "justifyContent": "flex-start",
511
- },
512
- undefined,
513
- ]
514
- }
515
- >
516
500
  <View
517
501
  style={
518
502
  [
519
503
  {
520
- "marginBottom": 5,
521
- "marginLeft": 10,
522
- "marginRight": 10,
504
+ "flexDirection": "row",
505
+ "justifyContent": "flex-start",
523
506
  },
524
507
  undefined,
525
508
  ]
526
509
  }
527
510
  >
528
- <Text
511
+ <View
529
512
  style={
530
513
  [
531
514
  {
532
- "color": "#aaa",
533
- "fontSize": 10,
534
- "textAlign": "right",
515
+ "marginBottom": 5,
516
+ "marginLeft": 10,
517
+ "marginRight": 10,
535
518
  },
536
519
  undefined,
537
520
  ]
538
521
  }
539
522
  >
540
- 7:20 PM
541
- </Text>
523
+ <Text
524
+ style={
525
+ [
526
+ {
527
+ "color": "#aaa",
528
+ "fontSize": 10,
529
+ "textAlign": "right",
530
+ },
531
+ undefined,
532
+ ]
533
+ }
534
+ >
535
+ 7:20 PM
536
+ </Text>
537
+ </View>
542
538
  </View>
543
539
  </View>
544
540
  </View>
@@ -2,21 +2,42 @@
2
2
 
3
3
  exports[`MessageImage should render <MessageImage /> and compare with snapshot 1`] = `
4
4
  <View>
5
- <Lightbox
6
- activeProps={
5
+ <View
6
+ accessibilityState={
7
7
  {
8
- "style": [
9
- {
10
- "flex": 1,
11
- },
12
- {
13
- "resizeMode": "contain",
14
- },
15
- ],
8
+ "busy": undefined,
9
+ "checked": undefined,
10
+ "disabled": undefined,
11
+ "expanded": undefined,
12
+ "selected": undefined,
13
+ }
14
+ }
15
+ accessibilityValue={
16
+ {
17
+ "max": undefined,
18
+ "min": undefined,
19
+ "now": undefined,
20
+ "text": undefined,
21
+ }
22
+ }
23
+ accessible={true}
24
+ collapsable={false}
25
+ focusable={true}
26
+ onClick={[Function]}
27
+ onResponderGrant={[Function]}
28
+ onResponderMove={[Function]}
29
+ onResponderRelease={[Function]}
30
+ onResponderTerminate={[Function]}
31
+ onResponderTerminationRequest={[Function]}
32
+ onStartShouldSetResponder={[Function]}
33
+ style={
34
+ {
35
+ "opacity": 1,
16
36
  }
17
37
  }
18
38
  >
19
39
  <Image
40
+ onLayout={[Function]}
20
41
  source={
21
42
  {
22
43
  "uri": "url://to/image.png",
@@ -35,7 +56,7 @@ exports[`MessageImage should render <MessageImage /> and compare with snapshot
35
56
  ]
36
57
  }
37
58
  />
38
- </Lightbox>
59
+ </View>
39
60
  </View>
40
61
  `;
41
62
 
@@ -4,27 +4,31 @@ exports[`should render <MessageText /> and compare with snapshot 1`] = `
4
4
  <View
5
5
  style={
6
6
  [
7
- {},
7
+ {
8
+ "marginBottom": 5,
9
+ "marginLeft": 10,
10
+ "marginRight": 10,
11
+ "marginTop": 5,
12
+ },
8
13
  undefined,
9
14
  ]
10
15
  }
11
16
  >
12
17
  <Text
18
+ link={true}
13
19
  style={
14
20
  [
15
21
  {
16
22
  "color": "black",
17
- "fontSize": 16,
18
- "lineHeight": 20,
19
- "marginBottom": 5,
20
- "marginLeft": 10,
21
- "marginRight": 10,
22
- "marginTop": 5,
23
23
  },
24
24
  undefined,
25
25
  undefined,
26
26
  ]
27
27
  }
28
- />
28
+ >
29
+ <Text>
30
+ test message
31
+ </Text>
32
+ </Text>
29
33
  </View>
30
34
  `;
@@ -24,7 +24,32 @@ exports[`Send should always render <Send /> and compare with snapshot 1`] = `
24
24
  accessible={true}
25
25
  collapsable={false}
26
26
  focusable={true}
27
+ jestAnimatedProps={
28
+ {
29
+ "value": {},
30
+ }
31
+ }
32
+ jestAnimatedStyle={
33
+ {
34
+ "value": {
35
+ "opacity": 1,
36
+ },
37
+ }
38
+ }
39
+ jestInlineStyle={
40
+ [
41
+ [
42
+ {
43
+ "height": 44,
44
+ "justifyContent": "flex-end",
45
+ },
46
+ undefined,
47
+ ],
48
+ ]
49
+ }
50
+ onBlur={[Function]}
27
51
  onClick={[Function]}
52
+ onFocus={[Function]}
28
53
  onResponderGrant={[Function]}
29
54
  onResponderMove={[Function]}
30
55
  onResponderRelease={[Function]}
@@ -32,11 +57,16 @@ exports[`Send should always render <Send /> and compare with snapshot 1`] = `
32
57
  onResponderTerminationRequest={[Function]}
33
58
  onStartShouldSetResponder={[Function]}
34
59
  style={
35
- {
36
- "height": 44,
37
- "justifyContent": "flex-end",
38
- "opacity": 1,
39
- }
60
+ [
61
+ {
62
+ "height": 44,
63
+ "justifyContent": "flex-end",
64
+ },
65
+ undefined,
66
+ {
67
+ "opacity": 1,
68
+ },
69
+ ]
40
70
  }
41
71
  testID="GC_SEND_TOUCHABLE"
42
72
  >
@@ -54,6 +84,7 @@ exports[`Send should always render <Send /> and compare with snapshot 1`] = `
54
84
  "marginRight": 10,
55
85
  },
56
86
  undefined,
87
+ undefined,
57
88
  ]
58
89
  }
59
90
  >
@@ -89,7 +120,32 @@ exports[`Send should render <Send /> where there is input and compare with snaps
89
120
  accessible={true}
90
121
  collapsable={false}
91
122
  focusable={true}
123
+ jestAnimatedProps={
124
+ {
125
+ "value": {},
126
+ }
127
+ }
128
+ jestAnimatedStyle={
129
+ {
130
+ "value": {
131
+ "opacity": 1,
132
+ },
133
+ }
134
+ }
135
+ jestInlineStyle={
136
+ [
137
+ [
138
+ {
139
+ "height": 44,
140
+ "justifyContent": "flex-end",
141
+ },
142
+ undefined,
143
+ ],
144
+ ]
145
+ }
146
+ onBlur={[Function]}
92
147
  onClick={[Function]}
148
+ onFocus={[Function]}
93
149
  onResponderGrant={[Function]}
94
150
  onResponderMove={[Function]}
95
151
  onResponderRelease={[Function]}
@@ -97,11 +153,16 @@ exports[`Send should render <Send /> where there is input and compare with snaps
97
153
  onResponderTerminationRequest={[Function]}
98
154
  onStartShouldSetResponder={[Function]}
99
155
  style={
100
- {
101
- "height": 44,
102
- "justifyContent": "flex-end",
103
- "opacity": 1,
104
- }
156
+ [
157
+ {
158
+ "height": 44,
159
+ "justifyContent": "flex-end",
160
+ },
161
+ undefined,
162
+ {
163
+ "opacity": 1,
164
+ },
165
+ ]
105
166
  }
106
167
  testID="GC_SEND_TOUCHABLE"
107
168
  >
@@ -119,6 +180,7 @@ exports[`Send should render <Send /> where there is input and compare with snaps
119
180
  "marginRight": 10,
120
181
  },
121
182
  undefined,
183
+ undefined,
122
184
  ]
123
185
  }
124
186
  >