stream-chat-react-native-core 6.0.2-beta.1 → 6.1.0-beta.1

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 (216) hide show
  1. package/README.md +1 -1
  2. package/lib/commonjs/components/Channel/Channel.js +371 -279
  3. package/lib/commonjs/components/Channel/Channel.js.map +1 -1
  4. package/lib/commonjs/components/Channel/hooks/useChannelDataState.js +8 -0
  5. package/lib/commonjs/components/Channel/hooks/useChannelDataState.js.map +1 -1
  6. package/lib/commonjs/components/Channel/hooks/useCreateChannelContext.js +10 -1
  7. package/lib/commonjs/components/Channel/hooks/useCreateChannelContext.js.map +1 -1
  8. package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js +4 -0
  9. package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
  10. package/lib/commonjs/components/Channel/hooks/useMessageListPagination.js +161 -69
  11. package/lib/commonjs/components/Channel/hooks/useMessageListPagination.js.map +1 -1
  12. package/lib/commonjs/components/Channel/hooks/useTargetedMessage.js +10 -0
  13. package/lib/commonjs/components/Channel/hooks/useTargetedMessage.js.map +1 -1
  14. package/lib/commonjs/components/Chat/hooks/handleEventToSyncDB.js +81 -54
  15. package/lib/commonjs/components/Chat/hooks/handleEventToSyncDB.js.map +1 -1
  16. package/lib/commonjs/components/Message/Message.js +6 -0
  17. package/lib/commonjs/components/Message/Message.js.map +1 -1
  18. package/lib/commonjs/components/Message/hooks/useMessageActionHandlers.js +117 -79
  19. package/lib/commonjs/components/Message/hooks/useMessageActionHandlers.js.map +1 -1
  20. package/lib/commonjs/components/Message/hooks/useMessageActions.js +32 -14
  21. package/lib/commonjs/components/Message/hooks/useMessageActions.js.map +1 -1
  22. package/lib/commonjs/components/Message/utils/messageActions.js +4 -0
  23. package/lib/commonjs/components/Message/utils/messageActions.js.map +1 -1
  24. package/lib/commonjs/components/MessageList/InlineUnreadIndicator.js +19 -55
  25. package/lib/commonjs/components/MessageList/InlineUnreadIndicator.js.map +1 -1
  26. package/lib/commonjs/components/MessageList/MessageList.js +249 -211
  27. package/lib/commonjs/components/MessageList/MessageList.js.map +1 -1
  28. package/lib/commonjs/components/MessageList/UnreadMessagesNotification.js +148 -0
  29. package/lib/commonjs/components/MessageList/UnreadMessagesNotification.js.map +1 -0
  30. package/lib/commonjs/components/MessageMenu/MessageActionListItem.js.map +1 -1
  31. package/lib/commonjs/contexts/channelContext/ChannelContext.js.map +1 -1
  32. package/lib/commonjs/contexts/messagesContext/MessagesContext.js.map +1 -1
  33. package/lib/commonjs/contexts/themeContext/utils/theme.js +7 -1
  34. package/lib/commonjs/contexts/themeContext/utils/theme.js.map +1 -1
  35. package/lib/commonjs/i18n/en.json +2 -0
  36. package/lib/commonjs/i18n/es.json +2 -0
  37. package/lib/commonjs/i18n/fr.json +2 -0
  38. package/lib/commonjs/i18n/he.json +2 -0
  39. package/lib/commonjs/i18n/hi.json +2 -0
  40. package/lib/commonjs/i18n/it.json +2 -0
  41. package/lib/commonjs/i18n/ja.json +2 -0
  42. package/lib/commonjs/i18n/ko.json +2 -0
  43. package/lib/commonjs/i18n/nl.json +2 -0
  44. package/lib/commonjs/i18n/pt-br.json +2 -0
  45. package/lib/commonjs/i18n/ru.json +2 -0
  46. package/lib/commonjs/i18n/tr.json +2 -0
  47. package/lib/commonjs/icons/UnreadIndicator.js +30 -0
  48. package/lib/commonjs/icons/UnreadIndicator.js.map +1 -0
  49. package/lib/commonjs/icons/index.js +11 -0
  50. package/lib/commonjs/icons/index.js.map +1 -1
  51. package/lib/commonjs/store/SqliteClient.js +1 -1
  52. package/lib/commonjs/store/schema.js +1 -0
  53. package/lib/commonjs/store/schema.js.map +1 -1
  54. package/lib/commonjs/types/types.js.map +1 -1
  55. package/lib/commonjs/utils/utils.js +35 -1
  56. package/lib/commonjs/utils/utils.js.map +1 -1
  57. package/lib/commonjs/version.json +1 -1
  58. package/lib/module/components/Channel/Channel.js +371 -279
  59. package/lib/module/components/Channel/Channel.js.map +1 -1
  60. package/lib/module/components/Channel/hooks/useChannelDataState.js +8 -0
  61. package/lib/module/components/Channel/hooks/useChannelDataState.js.map +1 -1
  62. package/lib/module/components/Channel/hooks/useCreateChannelContext.js +10 -1
  63. package/lib/module/components/Channel/hooks/useCreateChannelContext.js.map +1 -1
  64. package/lib/module/components/Channel/hooks/useCreateMessagesContext.js +4 -0
  65. package/lib/module/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
  66. package/lib/module/components/Channel/hooks/useMessageListPagination.js +161 -69
  67. package/lib/module/components/Channel/hooks/useMessageListPagination.js.map +1 -1
  68. package/lib/module/components/Channel/hooks/useTargetedMessage.js +10 -0
  69. package/lib/module/components/Channel/hooks/useTargetedMessage.js.map +1 -1
  70. package/lib/module/components/Chat/hooks/handleEventToSyncDB.js +81 -54
  71. package/lib/module/components/Chat/hooks/handleEventToSyncDB.js.map +1 -1
  72. package/lib/module/components/Message/Message.js +6 -0
  73. package/lib/module/components/Message/Message.js.map +1 -1
  74. package/lib/module/components/Message/hooks/useMessageActionHandlers.js +117 -79
  75. package/lib/module/components/Message/hooks/useMessageActionHandlers.js.map +1 -1
  76. package/lib/module/components/Message/hooks/useMessageActions.js +32 -14
  77. package/lib/module/components/Message/hooks/useMessageActions.js.map +1 -1
  78. package/lib/module/components/Message/utils/messageActions.js +4 -0
  79. package/lib/module/components/Message/utils/messageActions.js.map +1 -1
  80. package/lib/module/components/MessageList/InlineUnreadIndicator.js +19 -55
  81. package/lib/module/components/MessageList/InlineUnreadIndicator.js.map +1 -1
  82. package/lib/module/components/MessageList/MessageList.js +249 -211
  83. package/lib/module/components/MessageList/MessageList.js.map +1 -1
  84. package/lib/module/components/MessageList/UnreadMessagesNotification.js +148 -0
  85. package/lib/module/components/MessageList/UnreadMessagesNotification.js.map +1 -0
  86. package/lib/module/components/MessageMenu/MessageActionListItem.js.map +1 -1
  87. package/lib/module/contexts/channelContext/ChannelContext.js.map +1 -1
  88. package/lib/module/contexts/messagesContext/MessagesContext.js.map +1 -1
  89. package/lib/module/contexts/themeContext/utils/theme.js +7 -1
  90. package/lib/module/contexts/themeContext/utils/theme.js.map +1 -1
  91. package/lib/module/i18n/en.json +2 -0
  92. package/lib/module/i18n/es.json +2 -0
  93. package/lib/module/i18n/fr.json +2 -0
  94. package/lib/module/i18n/he.json +2 -0
  95. package/lib/module/i18n/hi.json +2 -0
  96. package/lib/module/i18n/it.json +2 -0
  97. package/lib/module/i18n/ja.json +2 -0
  98. package/lib/module/i18n/ko.json +2 -0
  99. package/lib/module/i18n/nl.json +2 -0
  100. package/lib/module/i18n/pt-br.json +2 -0
  101. package/lib/module/i18n/ru.json +2 -0
  102. package/lib/module/i18n/tr.json +2 -0
  103. package/lib/module/icons/UnreadIndicator.js +30 -0
  104. package/lib/module/icons/UnreadIndicator.js.map +1 -0
  105. package/lib/module/icons/index.js +11 -0
  106. package/lib/module/icons/index.js.map +1 -1
  107. package/lib/module/store/SqliteClient.js +1 -1
  108. package/lib/module/store/schema.js +1 -0
  109. package/lib/module/store/schema.js.map +1 -1
  110. package/lib/module/types/types.js.map +1 -1
  111. package/lib/module/utils/utils.js +35 -1
  112. package/lib/module/utils/utils.js.map +1 -1
  113. package/lib/module/version.json +1 -1
  114. package/lib/typescript/components/Channel/Channel.d.ts +15 -3
  115. package/lib/typescript/components/Channel/Channel.d.ts.map +1 -1
  116. package/lib/typescript/components/Channel/hooks/useChannelDataState.d.ts +1 -0
  117. package/lib/typescript/components/Channel/hooks/useChannelDataState.d.ts.map +1 -1
  118. package/lib/typescript/components/Channel/hooks/useCreateChannelContext.d.ts +1 -1
  119. package/lib/typescript/components/Channel/hooks/useCreateChannelContext.d.ts.map +1 -1
  120. package/lib/typescript/components/Channel/hooks/useCreateMessagesContext.d.ts +4 -2
  121. package/lib/typescript/components/Channel/hooks/useCreateMessagesContext.d.ts.map +1 -1
  122. package/lib/typescript/components/Channel/hooks/useMessageListPagination.d.ts +4 -1
  123. package/lib/typescript/components/Channel/hooks/useMessageListPagination.d.ts.map +1 -1
  124. package/lib/typescript/components/Channel/hooks/useTargetedMessage.d.ts +2 -1
  125. package/lib/typescript/components/Channel/hooks/useTargetedMessage.d.ts.map +1 -1
  126. package/lib/typescript/components/Chat/hooks/handleEventToSyncDB.d.ts.map +1 -1
  127. package/lib/typescript/components/Message/Message.d.ts +2 -1
  128. package/lib/typescript/components/Message/Message.d.ts.map +1 -1
  129. package/lib/typescript/components/Message/hooks/useMessageActionHandlers.d.ts +2 -1
  130. package/lib/typescript/components/Message/hooks/useMessageActionHandlers.d.ts.map +1 -1
  131. package/lib/typescript/components/Message/hooks/useMessageActions.d.ts +3 -2
  132. package/lib/typescript/components/Message/hooks/useMessageActions.d.ts.map +1 -1
  133. package/lib/typescript/components/Message/hooks/useMessageData.d.ts +1 -1
  134. package/lib/typescript/components/Message/utils/messageActions.d.ts +2 -1
  135. package/lib/typescript/components/Message/utils/messageActions.d.ts.map +1 -1
  136. package/lib/typescript/components/MessageList/InlineUnreadIndicator.d.ts.map +1 -1
  137. package/lib/typescript/components/MessageList/MessageList.d.ts +1 -1
  138. package/lib/typescript/components/MessageList/MessageList.d.ts.map +1 -1
  139. package/lib/typescript/components/MessageList/UnreadMessagesNotification.d.ts +13 -0
  140. package/lib/typescript/components/MessageList/UnreadMessagesNotification.d.ts.map +1 -0
  141. package/lib/typescript/components/MessageMenu/MessageActionListItem.d.ts +2 -2
  142. package/lib/typescript/components/MessageMenu/MessageActionListItem.d.ts.map +1 -1
  143. package/lib/typescript/contexts/channelContext/ChannelContext.d.ts +25 -8
  144. package/lib/typescript/contexts/channelContext/ChannelContext.d.ts.map +1 -1
  145. package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts +5 -0
  146. package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts.map +1 -1
  147. package/lib/typescript/contexts/themeContext/utils/theme.d.ts +6 -0
  148. package/lib/typescript/contexts/themeContext/utils/theme.d.ts.map +1 -1
  149. package/lib/typescript/i18n/en.json +2 -0
  150. package/lib/typescript/i18n/es.json +2 -0
  151. package/lib/typescript/i18n/fr.json +2 -0
  152. package/lib/typescript/i18n/he.json +2 -0
  153. package/lib/typescript/i18n/hi.json +2 -0
  154. package/lib/typescript/i18n/it.json +2 -0
  155. package/lib/typescript/i18n/ja.json +2 -0
  156. package/lib/typescript/i18n/ko.json +2 -0
  157. package/lib/typescript/i18n/nl.json +2 -0
  158. package/lib/typescript/i18n/pt-br.json +2 -0
  159. package/lib/typescript/i18n/ru.json +2 -0
  160. package/lib/typescript/i18n/tr.json +2 -0
  161. package/lib/typescript/icons/UnreadIndicator.d.ts +8 -0
  162. package/lib/typescript/icons/UnreadIndicator.d.ts.map +1 -0
  163. package/lib/typescript/icons/index.d.ts +1 -0
  164. package/lib/typescript/icons/index.d.ts.map +1 -1
  165. package/lib/typescript/store/mappers/mapStorableToChannel.d.ts +1 -1
  166. package/lib/typescript/store/schema.d.ts +1 -0
  167. package/lib/typescript/store/schema.d.ts.map +1 -1
  168. package/lib/typescript/types/types.d.ts +2 -1
  169. package/lib/typescript/types/types.d.ts.map +1 -1
  170. package/lib/typescript/utils/i18n/Streami18n.d.ts +2 -0
  171. package/lib/typescript/utils/i18n/Streami18n.d.ts.map +1 -1
  172. package/lib/typescript/utils/utils.d.ts +21 -1
  173. package/lib/typescript/utils/utils.d.ts.map +1 -1
  174. package/package.json +1 -1
  175. package/src/components/Channel/Channel.tsx +101 -24
  176. package/src/components/Channel/__tests__/Channel.test.js +109 -58
  177. package/src/components/Channel/__tests__/ownCapabilities.test.js +26 -0
  178. package/src/components/Channel/__tests__/useMessageListPagination.test.js +234 -37
  179. package/src/components/Channel/hooks/useChannelDataState.ts +8 -0
  180. package/src/components/Channel/hooks/useCreateChannelContext.ts +11 -0
  181. package/src/components/Channel/hooks/useCreateMessagesContext.ts +4 -0
  182. package/src/components/Channel/hooks/useMessageListPagination.tsx +134 -64
  183. package/src/components/Channel/hooks/useTargetedMessage.ts +9 -2
  184. package/src/components/Chat/hooks/handleEventToSyncDB.ts +23 -1
  185. package/src/components/Message/Message.tsx +8 -0
  186. package/src/components/Message/hooks/useMessageActionHandlers.ts +54 -40
  187. package/src/components/Message/hooks/useMessageActions.tsx +31 -14
  188. package/src/components/Message/utils/messageActions.ts +6 -0
  189. package/src/components/MessageList/InlineUnreadIndicator.tsx +17 -26
  190. package/src/components/MessageList/MessageList.tsx +197 -231
  191. package/src/components/MessageList/UnreadMessagesNotification.tsx +107 -0
  192. package/src/components/MessageList/__tests__/MessageList.test.js +213 -0
  193. package/src/components/MessageMenu/MessageActionListItem.tsx +2 -1
  194. package/src/components/Thread/__tests__/__snapshots__/Thread.test.js.snap +669 -679
  195. package/src/contexts/channelContext/ChannelContext.tsx +35 -9
  196. package/src/contexts/messagesContext/MessagesContext.tsx +7 -2
  197. package/src/contexts/themeContext/utils/theme.ts +12 -0
  198. package/src/i18n/en.json +2 -0
  199. package/src/i18n/es.json +2 -0
  200. package/src/i18n/fr.json +2 -0
  201. package/src/i18n/he.json +2 -0
  202. package/src/i18n/hi.json +2 -0
  203. package/src/i18n/it.json +2 -0
  204. package/src/i18n/ja.json +2 -0
  205. package/src/i18n/ko.json +2 -0
  206. package/src/i18n/nl.json +2 -0
  207. package/src/i18n/pt-br.json +2 -0
  208. package/src/i18n/ru.json +2 -0
  209. package/src/i18n/tr.json +2 -0
  210. package/src/icons/UnreadIndicator.tsx +18 -0
  211. package/src/icons/index.ts +1 -0
  212. package/src/store/SqliteClient.ts +1 -1
  213. package/src/store/schema.ts +2 -0
  214. package/src/types/types.ts +5 -2
  215. package/src/utils/utils.ts +61 -1
  216. package/src/version.json +1 -1
@@ -40,7 +40,6 @@ exports[`Thread should match thread snapshot 1`] = `
40
40
  contentContainerStyle={
41
41
  [
42
42
  {
43
- "flexGrow": 1,
44
43
  "paddingBottom": 4,
45
44
  },
46
45
  undefined,
@@ -255,316 +254,320 @@ exports[`Thread should match thread snapshot 1`] = `
255
254
  testID="message-list-item-0"
256
255
  >
257
256
  <View
258
- style={
259
- [
260
- [
261
- {},
262
- ],
263
- {
264
- "backgroundColor": undefined,
265
- },
266
- ]
267
- }
257
+ testID="message-list-item-0"
268
258
  >
269
259
  <View
270
260
  style={
271
261
  [
262
+ [
263
+ {},
264
+ ],
272
265
  {
273
- "marginTop": 2,
274
- "paddingHorizontal": 8,
266
+ "backgroundColor": undefined,
275
267
  },
276
- {},
277
268
  ]
278
269
  }
279
- testID="message-wrapper"
280
270
  >
281
271
  <View
282
272
  style={
283
273
  [
284
274
  {
285
- "alignItems": "flex-end",
286
- "flexDirection": "row",
287
- },
288
- {
289
- "marginBottom": 8,
290
- },
291
- {
292
- "justifyContent": "flex-start",
275
+ "marginTop": 2,
276
+ "paddingHorizontal": 8,
293
277
  },
294
278
  {},
295
279
  ]
296
280
  }
297
- testID="message-simple-wrapper"
281
+ testID="message-wrapper"
298
282
  >
299
283
  <View
300
284
  style={
301
285
  [
302
286
  {
303
- "marginRight": 8,
287
+ "alignItems": "flex-end",
288
+ "flexDirection": "row",
289
+ },
290
+ {
291
+ "marginBottom": 8,
292
+ },
293
+ {
294
+ "justifyContent": "flex-start",
304
295
  },
305
296
  {},
306
297
  ]
307
298
  }
308
- testID="message-avatar"
299
+ testID="message-simple-wrapper"
309
300
  >
310
- <View>
311
- <View
312
- style={
313
- [
314
- {
315
- "alignItems": "center",
316
- "justifyContent": "center",
317
- "overflow": "hidden",
318
- },
319
- {
320
- "borderRadius": 16,
321
- "height": 32,
322
- "width": 32,
323
- },
324
- {},
325
- undefined,
326
- ]
327
- }
328
- >
329
- <Image
330
- accessibilityLabel="Avatar Image"
331
- onError={[Function]}
332
- source={
333
- {
334
- "uri": "https://i.imgur.com/LuuGvh0.png",
335
- }
336
- }
301
+ <View
302
+ style={
303
+ [
304
+ {
305
+ "marginRight": 8,
306
+ },
307
+ {},
308
+ ]
309
+ }
310
+ testID="message-avatar"
311
+ >
312
+ <View>
313
+ <View
337
314
  style={
338
315
  [
339
316
  {
340
- "borderRadius": 16,
341
- "height": 32,
342
- "width": 32,
317
+ "alignItems": "center",
318
+ "justifyContent": "center",
319
+ "overflow": "hidden",
343
320
  },
344
321
  {
345
- "backgroundColor": "#ececec",
346
322
  "borderRadius": 16,
347
323
  "height": 32,
348
324
  "width": 32,
349
325
  },
326
+ {},
350
327
  undefined,
351
328
  ]
352
329
  }
353
- testID="avatar-image"
354
- />
330
+ >
331
+ <Image
332
+ accessibilityLabel="Avatar Image"
333
+ onError={[Function]}
334
+ source={
335
+ {
336
+ "uri": "https://i.imgur.com/LuuGvh0.png",
337
+ }
338
+ }
339
+ style={
340
+ [
341
+ {
342
+ "borderRadius": 16,
343
+ "height": 32,
344
+ "width": 32,
345
+ },
346
+ {
347
+ "backgroundColor": "#ececec",
348
+ "borderRadius": 16,
349
+ "height": 32,
350
+ "width": 32,
351
+ },
352
+ undefined,
353
+ ]
354
+ }
355
+ testID="avatar-image"
356
+ />
357
+ </View>
355
358
  </View>
356
359
  </View>
357
- </View>
358
- <View
359
- style={
360
- [
361
- {},
362
- {
363
- "alignItems": "flex-start",
364
- },
365
- {},
366
- {
367
- "borderRadiusL": 16,
368
- "borderRadiusS": 0,
369
- },
370
- ]
371
- }
372
- testID="message-components"
373
- >
374
360
  <View
375
361
  style={
376
362
  [
363
+ {},
377
364
  {
378
- "paddingBottom": 2,
365
+ "alignItems": "flex-start",
379
366
  },
380
367
  {},
381
- ]
382
- }
383
- />
384
- <View
385
- style={
386
- [
387
368
  {
388
- "flexDirection": "row",
369
+ "borderRadiusL": 16,
370
+ "borderRadiusS": 0,
389
371
  },
390
- {},
391
372
  ]
392
373
  }
374
+ testID="message-components"
393
375
  >
394
376
  <View
395
- accessibilityState={
396
- {
397
- "busy": undefined,
398
- "checked": undefined,
399
- "disabled": undefined,
400
- "expanded": undefined,
401
- "selected": undefined,
402
- }
403
- }
404
- accessibilityValue={
405
- {
406
- "max": undefined,
407
- "min": undefined,
408
- "now": undefined,
409
- "text": undefined,
410
- }
377
+ style={
378
+ [
379
+ {
380
+ "paddingBottom": 2,
381
+ },
382
+ {},
383
+ ]
411
384
  }
412
- accessible={true}
413
- collapsable={false}
414
- focusable={true}
415
- onBlur={[Function]}
416
- onClick={[Function]}
417
- onFocus={[Function]}
418
- onResponderGrant={[Function]}
419
- onResponderMove={[Function]}
420
- onResponderRelease={[Function]}
421
- onResponderTerminate={[Function]}
422
- onResponderTerminationRequest={[Function]}
423
- onStartShouldSetResponder={[Function]}
385
+ />
386
+ <View
424
387
  style={
425
- {
426
- "opacity": 1,
427
- }
388
+ [
389
+ {
390
+ "flexDirection": "row",
391
+ },
392
+ {},
393
+ ]
428
394
  }
429
395
  >
430
396
  <View
431
- onLayout={[Function]}
432
- style={{}}
397
+ accessibilityState={
398
+ {
399
+ "busy": undefined,
400
+ "checked": undefined,
401
+ "disabled": undefined,
402
+ "expanded": undefined,
403
+ "selected": undefined,
404
+ }
405
+ }
406
+ accessibilityValue={
407
+ {
408
+ "max": undefined,
409
+ "min": undefined,
410
+ "now": undefined,
411
+ "text": undefined,
412
+ }
413
+ }
414
+ accessible={true}
415
+ collapsable={false}
416
+ focusable={true}
417
+ onBlur={[Function]}
418
+ onClick={[Function]}
419
+ onFocus={[Function]}
420
+ onResponderGrant={[Function]}
421
+ onResponderMove={[Function]}
422
+ onResponderRelease={[Function]}
423
+ onResponderTerminate={[Function]}
424
+ onResponderTerminationRequest={[Function]}
425
+ onStartShouldSetResponder={[Function]}
426
+ style={
427
+ {
428
+ "opacity": 1,
429
+ }
430
+ }
433
431
  >
434
432
  <View
435
- style={
436
- [
437
- {
438
- "borderTopLeftRadius": 16,
439
- "borderTopRightRadius": 16,
440
- "borderWidth": 1,
441
- },
442
- {
443
- "backgroundColor": "#E9EAED",
444
- "borderBottomLeftRadius": 0,
445
- "borderBottomRightRadius": 16,
446
- "borderColor": "#ECEBEB",
447
- },
448
- {},
449
- {},
450
- ]
451
- }
452
- testID="message-content-wrapper"
433
+ onLayout={[Function]}
434
+ style={{}}
453
435
  >
454
436
  <View
455
437
  style={
456
438
  [
457
439
  {
458
- "maxWidth": 250,
459
- "paddingHorizontal": 16,
440
+ "borderTopLeftRadius": 16,
441
+ "borderTopRightRadius": 16,
442
+ "borderWidth": 1,
443
+ },
444
+ {
445
+ "backgroundColor": "#E9EAED",
446
+ "borderBottomLeftRadius": 0,
447
+ "borderBottomRightRadius": 16,
448
+ "borderColor": "#ECEBEB",
460
449
  },
461
450
  {},
462
- undefined,
451
+ {},
463
452
  ]
464
453
  }
465
- testID="message-text-container"
454
+ testID="message-content-wrapper"
466
455
  >
467
456
  <View
468
457
  style={
469
458
  [
470
459
  {
471
- "alignSelf": "stretch",
460
+ "maxWidth": 250,
461
+ "paddingHorizontal": 16,
472
462
  },
463
+ {},
473
464
  undefined,
474
465
  ]
475
466
  }
467
+ testID="message-text-container"
476
468
  >
477
- <Text
469
+ <View
478
470
  style={
479
- {
480
- "alignItems": "flex-start",
481
- "flexDirection": "row",
482
- "flexWrap": "wrap",
483
- "justifyContent": "flex-start",
484
- "marginBottom": 8,
485
- "marginTop": 8,
486
- }
471
+ [
472
+ {
473
+ "alignSelf": "stretch",
474
+ },
475
+ undefined,
476
+ ]
487
477
  }
488
478
  >
489
479
  <Text
490
480
  style={
491
481
  {
492
- "color": "#000000",
482
+ "alignItems": "flex-start",
483
+ "flexDirection": "row",
484
+ "flexWrap": "wrap",
485
+ "justifyContent": "flex-start",
486
+ "marginBottom": 8,
487
+ "marginTop": 8,
493
488
  }
494
489
  }
495
490
  >
496
- Message6
491
+ <Text
492
+ style={
493
+ {
494
+ "color": "#000000",
495
+ }
496
+ }
497
+ >
498
+ Message6
499
+ </Text>
497
500
  </Text>
498
- </Text>
501
+ </View>
499
502
  </View>
500
503
  </View>
501
504
  </View>
502
505
  </View>
503
506
  </View>
504
- </View>
505
- <View
506
- style={
507
- [
508
- {
509
- "alignItems": "center",
510
- "flexDirection": "row",
511
- "justifyContent": "center",
512
- "marginTop": 4,
513
- },
514
- {},
515
- ]
516
- }
517
- testID="message-status-time"
518
- >
519
- <Text
520
- style={
521
- [
522
- {
523
- "fontSize": 12,
524
- },
525
- {
526
- "color": "#7A7A7A",
527
- },
528
- {},
529
- ]
530
- }
531
- >
532
- 2:50 PM
533
- </Text>
534
- <Text
535
- style={
536
- [
537
- {
538
- "paddingHorizontal": 4,
539
- },
540
- {
541
- "color": "#7A7A7A",
542
- "textAlign": "left",
543
- },
544
- {
545
- "fontSize": 12,
546
- },
547
- ]
548
- }
549
- >
550
-
551
- </Text>
552
- <Text
507
+ <View
553
508
  style={
554
509
  [
555
510
  {
556
- "fontSize": 12,
557
- },
558
- {
559
- "color": "#7A7A7A",
560
- "textAlign": "left",
511
+ "alignItems": "center",
512
+ "flexDirection": "row",
513
+ "justifyContent": "center",
514
+ "marginTop": 4,
561
515
  },
562
516
  {},
563
517
  ]
564
518
  }
519
+ testID="message-status-time"
565
520
  >
566
- Edited
567
- </Text>
521
+ <Text
522
+ style={
523
+ [
524
+ {
525
+ "fontSize": 12,
526
+ },
527
+ {
528
+ "color": "#7A7A7A",
529
+ },
530
+ {},
531
+ ]
532
+ }
533
+ >
534
+ 2:50 PM
535
+ </Text>
536
+ <Text
537
+ style={
538
+ [
539
+ {
540
+ "paddingHorizontal": 4,
541
+ },
542
+ {
543
+ "color": "#7A7A7A",
544
+ "textAlign": "left",
545
+ },
546
+ {
547
+ "fontSize": 12,
548
+ },
549
+ ]
550
+ }
551
+ >
552
+
553
+ </Text>
554
+ <Text
555
+ style={
556
+ [
557
+ {
558
+ "fontSize": 12,
559
+ },
560
+ {
561
+ "color": "#7A7A7A",
562
+ "textAlign": "left",
563
+ },
564
+ {},
565
+ ]
566
+ }
567
+ >
568
+ Edited
569
+ </Text>
570
+ </View>
568
571
  </View>
569
572
  </View>
570
573
  </View>
@@ -578,13 +581,6 @@ exports[`Thread should match thread snapshot 1`] = `
578
581
  ]
579
582
  }
580
583
  />
581
- <View
582
- style={
583
- [
584
- undefined,
585
- ]
586
- }
587
- />
588
584
  </View>
589
585
  <View
590
586
  onFocusCapture={[Function]}
@@ -613,316 +609,320 @@ exports[`Thread should match thread snapshot 1`] = `
613
609
  testID="message-list-item-1"
614
610
  >
615
611
  <View
616
- style={
617
- [
618
- [
619
- {},
620
- ],
621
- {
622
- "backgroundColor": undefined,
623
- },
624
- ]
625
- }
612
+ testID="message-list-item-1"
626
613
  >
627
614
  <View
628
615
  style={
629
616
  [
617
+ [
618
+ {},
619
+ ],
630
620
  {
631
- "marginTop": 2,
632
- "paddingHorizontal": 8,
621
+ "backgroundColor": undefined,
633
622
  },
634
- {},
635
623
  ]
636
624
  }
637
- testID="message-wrapper"
638
625
  >
639
626
  <View
640
627
  style={
641
628
  [
642
629
  {
643
- "alignItems": "flex-end",
644
- "flexDirection": "row",
645
- },
646
- {
647
- "marginBottom": 8,
648
- },
649
- {
650
- "justifyContent": "flex-start",
630
+ "marginTop": 2,
631
+ "paddingHorizontal": 8,
651
632
  },
652
633
  {},
653
634
  ]
654
635
  }
655
- testID="message-simple-wrapper"
636
+ testID="message-wrapper"
656
637
  >
657
638
  <View
658
639
  style={
659
640
  [
660
641
  {
661
- "marginRight": 8,
642
+ "alignItems": "flex-end",
643
+ "flexDirection": "row",
644
+ },
645
+ {
646
+ "marginBottom": 8,
647
+ },
648
+ {
649
+ "justifyContent": "flex-start",
662
650
  },
663
651
  {},
664
652
  ]
665
653
  }
666
- testID="message-avatar"
654
+ testID="message-simple-wrapper"
667
655
  >
668
- <View>
669
- <View
670
- style={
671
- [
672
- {
673
- "alignItems": "center",
674
- "justifyContent": "center",
675
- "overflow": "hidden",
676
- },
677
- {
678
- "borderRadius": 16,
679
- "height": 32,
680
- "width": 32,
681
- },
682
- {},
683
- undefined,
684
- ]
685
- }
686
- >
687
- <Image
688
- accessibilityLabel="Avatar Image"
689
- onError={[Function]}
690
- source={
691
- {
692
- "uri": "https://i.imgur.com/spueyAP.png",
693
- }
694
- }
656
+ <View
657
+ style={
658
+ [
659
+ {
660
+ "marginRight": 8,
661
+ },
662
+ {},
663
+ ]
664
+ }
665
+ testID="message-avatar"
666
+ >
667
+ <View>
668
+ <View
695
669
  style={
696
670
  [
697
671
  {
698
- "borderRadius": 16,
699
- "height": 32,
700
- "width": 32,
672
+ "alignItems": "center",
673
+ "justifyContent": "center",
674
+ "overflow": "hidden",
701
675
  },
702
676
  {
703
- "backgroundColor": "#ececec",
704
677
  "borderRadius": 16,
705
678
  "height": 32,
706
679
  "width": 32,
707
680
  },
681
+ {},
708
682
  undefined,
709
683
  ]
710
684
  }
711
- testID="avatar-image"
712
- />
685
+ >
686
+ <Image
687
+ accessibilityLabel="Avatar Image"
688
+ onError={[Function]}
689
+ source={
690
+ {
691
+ "uri": "https://i.imgur.com/spueyAP.png",
692
+ }
693
+ }
694
+ style={
695
+ [
696
+ {
697
+ "borderRadius": 16,
698
+ "height": 32,
699
+ "width": 32,
700
+ },
701
+ {
702
+ "backgroundColor": "#ececec",
703
+ "borderRadius": 16,
704
+ "height": 32,
705
+ "width": 32,
706
+ },
707
+ undefined,
708
+ ]
709
+ }
710
+ testID="avatar-image"
711
+ />
712
+ </View>
713
713
  </View>
714
714
  </View>
715
- </View>
716
- <View
717
- style={
718
- [
719
- {},
720
- {
721
- "alignItems": "flex-start",
722
- },
723
- {},
724
- {
725
- "borderRadiusL": 16,
726
- "borderRadiusS": 0,
727
- },
728
- ]
729
- }
730
- testID="message-components"
731
- >
732
715
  <View
733
716
  style={
734
717
  [
718
+ {},
735
719
  {
736
- "paddingBottom": 2,
720
+ "alignItems": "flex-start",
737
721
  },
738
722
  {},
739
- ]
740
- }
741
- />
742
- <View
743
- style={
744
- [
745
723
  {
746
- "flexDirection": "row",
724
+ "borderRadiusL": 16,
725
+ "borderRadiusS": 0,
747
726
  },
748
- {},
749
727
  ]
750
728
  }
729
+ testID="message-components"
751
730
  >
752
731
  <View
753
- accessibilityState={
754
- {
755
- "busy": undefined,
756
- "checked": undefined,
757
- "disabled": undefined,
758
- "expanded": undefined,
759
- "selected": undefined,
760
- }
761
- }
762
- accessibilityValue={
763
- {
764
- "max": undefined,
765
- "min": undefined,
766
- "now": undefined,
767
- "text": undefined,
768
- }
732
+ style={
733
+ [
734
+ {
735
+ "paddingBottom": 2,
736
+ },
737
+ {},
738
+ ]
769
739
  }
770
- accessible={true}
771
- collapsable={false}
772
- focusable={true}
773
- onBlur={[Function]}
774
- onClick={[Function]}
775
- onFocus={[Function]}
776
- onResponderGrant={[Function]}
777
- onResponderMove={[Function]}
778
- onResponderRelease={[Function]}
779
- onResponderTerminate={[Function]}
780
- onResponderTerminationRequest={[Function]}
781
- onStartShouldSetResponder={[Function]}
740
+ />
741
+ <View
782
742
  style={
783
- {
784
- "opacity": 1,
785
- }
743
+ [
744
+ {
745
+ "flexDirection": "row",
746
+ },
747
+ {},
748
+ ]
786
749
  }
787
750
  >
788
751
  <View
789
- onLayout={[Function]}
790
- style={{}}
752
+ accessibilityState={
753
+ {
754
+ "busy": undefined,
755
+ "checked": undefined,
756
+ "disabled": undefined,
757
+ "expanded": undefined,
758
+ "selected": undefined,
759
+ }
760
+ }
761
+ accessibilityValue={
762
+ {
763
+ "max": undefined,
764
+ "min": undefined,
765
+ "now": undefined,
766
+ "text": undefined,
767
+ }
768
+ }
769
+ accessible={true}
770
+ collapsable={false}
771
+ focusable={true}
772
+ onBlur={[Function]}
773
+ onClick={[Function]}
774
+ onFocus={[Function]}
775
+ onResponderGrant={[Function]}
776
+ onResponderMove={[Function]}
777
+ onResponderRelease={[Function]}
778
+ onResponderTerminate={[Function]}
779
+ onResponderTerminationRequest={[Function]}
780
+ onStartShouldSetResponder={[Function]}
781
+ style={
782
+ {
783
+ "opacity": 1,
784
+ }
785
+ }
791
786
  >
792
787
  <View
793
- style={
794
- [
795
- {
796
- "borderTopLeftRadius": 16,
797
- "borderTopRightRadius": 16,
798
- "borderWidth": 1,
799
- },
800
- {
801
- "backgroundColor": "#E9EAED",
802
- "borderBottomLeftRadius": 0,
803
- "borderBottomRightRadius": 16,
804
- "borderColor": "#ECEBEB",
805
- },
806
- {},
807
- {},
808
- ]
809
- }
810
- testID="message-content-wrapper"
788
+ onLayout={[Function]}
789
+ style={{}}
811
790
  >
812
791
  <View
813
792
  style={
814
793
  [
815
794
  {
816
- "maxWidth": 250,
817
- "paddingHorizontal": 16,
795
+ "borderTopLeftRadius": 16,
796
+ "borderTopRightRadius": 16,
797
+ "borderWidth": 1,
798
+ },
799
+ {
800
+ "backgroundColor": "#E9EAED",
801
+ "borderBottomLeftRadius": 0,
802
+ "borderBottomRightRadius": 16,
803
+ "borderColor": "#ECEBEB",
818
804
  },
819
805
  {},
820
- undefined,
806
+ {},
821
807
  ]
822
808
  }
823
- testID="message-text-container"
809
+ testID="message-content-wrapper"
824
810
  >
825
811
  <View
826
812
  style={
827
813
  [
828
814
  {
829
- "alignSelf": "stretch",
815
+ "maxWidth": 250,
816
+ "paddingHorizontal": 16,
830
817
  },
818
+ {},
831
819
  undefined,
832
820
  ]
833
821
  }
822
+ testID="message-text-container"
834
823
  >
835
- <Text
824
+ <View
836
825
  style={
837
- {
838
- "alignItems": "flex-start",
839
- "flexDirection": "row",
840
- "flexWrap": "wrap",
841
- "justifyContent": "flex-start",
842
- "marginBottom": 8,
843
- "marginTop": 8,
844
- }
826
+ [
827
+ {
828
+ "alignSelf": "stretch",
829
+ },
830
+ undefined,
831
+ ]
845
832
  }
846
833
  >
847
834
  <Text
848
835
  style={
849
836
  {
850
- "color": "#000000",
837
+ "alignItems": "flex-start",
838
+ "flexDirection": "row",
839
+ "flexWrap": "wrap",
840
+ "justifyContent": "flex-start",
841
+ "marginBottom": 8,
842
+ "marginTop": 8,
851
843
  }
852
844
  }
853
845
  >
854
- Message5
846
+ <Text
847
+ style={
848
+ {
849
+ "color": "#000000",
850
+ }
851
+ }
852
+ >
853
+ Message5
854
+ </Text>
855
855
  </Text>
856
- </Text>
856
+ </View>
857
857
  </View>
858
858
  </View>
859
859
  </View>
860
860
  </View>
861
861
  </View>
862
- </View>
863
- <View
864
- style={
865
- [
866
- {
867
- "alignItems": "center",
868
- "flexDirection": "row",
869
- "justifyContent": "center",
870
- "marginTop": 4,
871
- },
872
- {},
873
- ]
874
- }
875
- testID="message-status-time"
876
- >
877
- <Text
878
- style={
879
- [
880
- {
881
- "fontSize": 12,
882
- },
883
- {
884
- "color": "#7A7A7A",
885
- },
886
- {},
887
- ]
888
- }
889
- >
890
- 2:50 PM
891
- </Text>
892
- <Text
893
- style={
894
- [
895
- {
896
- "paddingHorizontal": 4,
897
- },
898
- {
899
- "color": "#7A7A7A",
900
- "textAlign": "left",
901
- },
902
- {
903
- "fontSize": 12,
904
- },
905
- ]
906
- }
907
- >
908
-
909
- </Text>
910
- <Text
862
+ <View
911
863
  style={
912
864
  [
913
865
  {
914
- "fontSize": 12,
915
- },
916
- {
917
- "color": "#7A7A7A",
918
- "textAlign": "left",
866
+ "alignItems": "center",
867
+ "flexDirection": "row",
868
+ "justifyContent": "center",
869
+ "marginTop": 4,
919
870
  },
920
871
  {},
921
872
  ]
922
873
  }
874
+ testID="message-status-time"
923
875
  >
924
- Edited
925
- </Text>
876
+ <Text
877
+ style={
878
+ [
879
+ {
880
+ "fontSize": 12,
881
+ },
882
+ {
883
+ "color": "#7A7A7A",
884
+ },
885
+ {},
886
+ ]
887
+ }
888
+ >
889
+ 2:50 PM
890
+ </Text>
891
+ <Text
892
+ style={
893
+ [
894
+ {
895
+ "paddingHorizontal": 4,
896
+ },
897
+ {
898
+ "color": "#7A7A7A",
899
+ "textAlign": "left",
900
+ },
901
+ {
902
+ "fontSize": 12,
903
+ },
904
+ ]
905
+ }
906
+ >
907
+
908
+ </Text>
909
+ <Text
910
+ style={
911
+ [
912
+ {
913
+ "fontSize": 12,
914
+ },
915
+ {
916
+ "color": "#7A7A7A",
917
+ "textAlign": "left",
918
+ },
919
+ {},
920
+ ]
921
+ }
922
+ >
923
+ Edited
924
+ </Text>
925
+ </View>
926
926
  </View>
927
927
  </View>
928
928
  </View>
@@ -936,13 +936,6 @@ exports[`Thread should match thread snapshot 1`] = `
936
936
  ]
937
937
  }
938
938
  />
939
- <View
940
- style={
941
- [
942
- undefined,
943
- ]
944
- }
945
- />
946
939
  </View>
947
940
  <View
948
941
  onFocusCapture={[Function]}
@@ -971,367 +964,364 @@ exports[`Thread should match thread snapshot 1`] = `
971
964
  testID="message-list-item-2"
972
965
  >
973
966
  <View
974
- style={
975
- [
976
- [
977
- {},
978
- ],
979
- {
980
- "backgroundColor": undefined,
981
- },
982
- ]
983
- }
967
+ testID="message-list-item-2"
984
968
  >
985
969
  <View
986
970
  style={
987
971
  [
988
972
  {
989
- "marginTop": 2,
973
+ "alignItems": "center",
974
+ "alignSelf": "center",
975
+ "borderRadius": 8,
976
+ "height": 16,
977
+ "justifyContent": "center",
978
+ "marginVertical": 4,
990
979
  "paddingHorizontal": 8,
991
980
  },
981
+ {
982
+ "backgroundColor": "#000000CC",
983
+ },
992
984
  {},
993
985
  ]
994
986
  }
995
- testID="message-wrapper"
987
+ testID="date-separator"
996
988
  >
997
- <View
989
+ <Text
998
990
  style={
999
991
  [
1000
992
  {
1001
- "alignItems": "flex-end",
1002
- "flexDirection": "row",
993
+ "fontSize": 12,
994
+ "textAlign": "center",
995
+ "textAlignVertical": "center",
1003
996
  },
1004
997
  {
1005
- "marginBottom": 8,
998
+ "color": "#FFFFFF",
1006
999
  },
1000
+ {},
1001
+ ]
1002
+ }
1003
+ >
1004
+ 05/05/2020
1005
+ </Text>
1006
+ </View>
1007
+ <View
1008
+ style={
1009
+ [
1010
+ [
1011
+ {},
1012
+ ],
1013
+ {
1014
+ "backgroundColor": undefined,
1015
+ },
1016
+ ]
1017
+ }
1018
+ >
1019
+ <View
1020
+ style={
1021
+ [
1007
1022
  {
1008
- "justifyContent": "flex-start",
1023
+ "marginTop": 2,
1024
+ "paddingHorizontal": 8,
1009
1025
  },
1010
1026
  {},
1011
1027
  ]
1012
1028
  }
1013
- testID="message-simple-wrapper"
1029
+ testID="message-wrapper"
1014
1030
  >
1015
1031
  <View
1016
1032
  style={
1017
1033
  [
1018
1034
  {
1019
- "marginRight": 8,
1035
+ "alignItems": "flex-end",
1036
+ "flexDirection": "row",
1037
+ },
1038
+ {
1039
+ "marginBottom": 8,
1040
+ },
1041
+ {
1042
+ "justifyContent": "flex-start",
1020
1043
  },
1021
1044
  {},
1022
1045
  ]
1023
1046
  }
1024
- testID="message-avatar"
1047
+ testID="message-simple-wrapper"
1025
1048
  >
1026
- <View>
1027
- <View
1028
- style={
1029
- [
1030
- {
1031
- "alignItems": "center",
1032
- "justifyContent": "center",
1033
- "overflow": "hidden",
1034
- },
1035
- {
1036
- "borderRadius": 16,
1037
- "height": 32,
1038
- "width": 32,
1039
- },
1040
- {},
1041
- undefined,
1042
- ]
1043
- }
1044
- >
1045
- <Image
1046
- accessibilityLabel="Avatar Image"
1047
- onError={[Function]}
1048
- source={
1049
- {
1050
- "uri": "https://i.imgur.com/LuuGvh0.png",
1051
- }
1052
- }
1049
+ <View
1050
+ style={
1051
+ [
1052
+ {
1053
+ "marginRight": 8,
1054
+ },
1055
+ {},
1056
+ ]
1057
+ }
1058
+ testID="message-avatar"
1059
+ >
1060
+ <View>
1061
+ <View
1053
1062
  style={
1054
1063
  [
1055
1064
  {
1056
- "borderRadius": 16,
1057
- "height": 32,
1058
- "width": 32,
1065
+ "alignItems": "center",
1066
+ "justifyContent": "center",
1067
+ "overflow": "hidden",
1059
1068
  },
1060
1069
  {
1061
- "backgroundColor": "#ececec",
1062
1070
  "borderRadius": 16,
1063
1071
  "height": 32,
1064
1072
  "width": 32,
1065
1073
  },
1074
+ {},
1066
1075
  undefined,
1067
1076
  ]
1068
1077
  }
1069
- testID="avatar-image"
1070
- />
1078
+ >
1079
+ <Image
1080
+ accessibilityLabel="Avatar Image"
1081
+ onError={[Function]}
1082
+ source={
1083
+ {
1084
+ "uri": "https://i.imgur.com/LuuGvh0.png",
1085
+ }
1086
+ }
1087
+ style={
1088
+ [
1089
+ {
1090
+ "borderRadius": 16,
1091
+ "height": 32,
1092
+ "width": 32,
1093
+ },
1094
+ {
1095
+ "backgroundColor": "#ececec",
1096
+ "borderRadius": 16,
1097
+ "height": 32,
1098
+ "width": 32,
1099
+ },
1100
+ undefined,
1101
+ ]
1102
+ }
1103
+ testID="avatar-image"
1104
+ />
1105
+ </View>
1071
1106
  </View>
1072
1107
  </View>
1073
- </View>
1074
- <View
1075
- style={
1076
- [
1077
- {},
1078
- {
1079
- "alignItems": "flex-start",
1080
- },
1081
- {},
1082
- {
1083
- "borderRadiusL": 16,
1084
- "borderRadiusS": 0,
1085
- },
1086
- ]
1087
- }
1088
- testID="message-components"
1089
- >
1090
1108
  <View
1091
1109
  style={
1092
1110
  [
1111
+ {},
1093
1112
  {
1094
- "paddingBottom": 2,
1113
+ "alignItems": "flex-start",
1095
1114
  },
1096
1115
  {},
1097
- ]
1098
- }
1099
- />
1100
- <View
1101
- style={
1102
- [
1103
1116
  {
1104
- "flexDirection": "row",
1117
+ "borderRadiusL": 16,
1118
+ "borderRadiusS": 0,
1105
1119
  },
1106
- {},
1107
1120
  ]
1108
1121
  }
1122
+ testID="message-components"
1109
1123
  >
1110
1124
  <View
1111
- accessibilityState={
1112
- {
1113
- "busy": undefined,
1114
- "checked": undefined,
1115
- "disabled": undefined,
1116
- "expanded": undefined,
1117
- "selected": undefined,
1118
- }
1119
- }
1120
- accessibilityValue={
1121
- {
1122
- "max": undefined,
1123
- "min": undefined,
1124
- "now": undefined,
1125
- "text": undefined,
1126
- }
1125
+ style={
1126
+ [
1127
+ {
1128
+ "paddingBottom": 2,
1129
+ },
1130
+ {},
1131
+ ]
1127
1132
  }
1128
- accessible={true}
1129
- collapsable={false}
1130
- focusable={true}
1131
- onBlur={[Function]}
1132
- onClick={[Function]}
1133
- onFocus={[Function]}
1134
- onResponderGrant={[Function]}
1135
- onResponderMove={[Function]}
1136
- onResponderRelease={[Function]}
1137
- onResponderTerminate={[Function]}
1138
- onResponderTerminationRequest={[Function]}
1139
- onStartShouldSetResponder={[Function]}
1133
+ />
1134
+ <View
1140
1135
  style={
1141
- {
1142
- "opacity": 1,
1143
- }
1136
+ [
1137
+ {
1138
+ "flexDirection": "row",
1139
+ },
1140
+ {},
1141
+ ]
1144
1142
  }
1145
1143
  >
1146
1144
  <View
1147
- onLayout={[Function]}
1148
- style={{}}
1145
+ accessibilityState={
1146
+ {
1147
+ "busy": undefined,
1148
+ "checked": undefined,
1149
+ "disabled": undefined,
1150
+ "expanded": undefined,
1151
+ "selected": undefined,
1152
+ }
1153
+ }
1154
+ accessibilityValue={
1155
+ {
1156
+ "max": undefined,
1157
+ "min": undefined,
1158
+ "now": undefined,
1159
+ "text": undefined,
1160
+ }
1161
+ }
1162
+ accessible={true}
1163
+ collapsable={false}
1164
+ focusable={true}
1165
+ onBlur={[Function]}
1166
+ onClick={[Function]}
1167
+ onFocus={[Function]}
1168
+ onResponderGrant={[Function]}
1169
+ onResponderMove={[Function]}
1170
+ onResponderRelease={[Function]}
1171
+ onResponderTerminate={[Function]}
1172
+ onResponderTerminationRequest={[Function]}
1173
+ onStartShouldSetResponder={[Function]}
1174
+ style={
1175
+ {
1176
+ "opacity": 1,
1177
+ }
1178
+ }
1149
1179
  >
1150
1180
  <View
1151
- style={
1152
- [
1153
- {
1154
- "borderTopLeftRadius": 16,
1155
- "borderTopRightRadius": 16,
1156
- "borderWidth": 1,
1157
- },
1158
- {
1159
- "backgroundColor": "#E9EAED",
1160
- "borderBottomLeftRadius": 0,
1161
- "borderBottomRightRadius": 16,
1162
- "borderColor": "#ECEBEB",
1163
- },
1164
- {},
1165
- {},
1166
- ]
1167
- }
1168
- testID="message-content-wrapper"
1181
+ onLayout={[Function]}
1182
+ style={{}}
1169
1183
  >
1170
1184
  <View
1171
1185
  style={
1172
1186
  [
1173
1187
  {
1174
- "maxWidth": 250,
1175
- "paddingHorizontal": 16,
1188
+ "borderTopLeftRadius": 16,
1189
+ "borderTopRightRadius": 16,
1190
+ "borderWidth": 1,
1191
+ },
1192
+ {
1193
+ "backgroundColor": "#E9EAED",
1194
+ "borderBottomLeftRadius": 0,
1195
+ "borderBottomRightRadius": 16,
1196
+ "borderColor": "#ECEBEB",
1176
1197
  },
1177
1198
  {},
1178
- undefined,
1199
+ {},
1179
1200
  ]
1180
1201
  }
1181
- testID="message-text-container"
1202
+ testID="message-content-wrapper"
1182
1203
  >
1183
1204
  <View
1184
1205
  style={
1185
1206
  [
1186
1207
  {
1187
- "alignSelf": "stretch",
1208
+ "maxWidth": 250,
1209
+ "paddingHorizontal": 16,
1188
1210
  },
1211
+ {},
1189
1212
  undefined,
1190
1213
  ]
1191
1214
  }
1215
+ testID="message-text-container"
1192
1216
  >
1193
- <Text
1217
+ <View
1194
1218
  style={
1195
- {
1196
- "alignItems": "flex-start",
1197
- "flexDirection": "row",
1198
- "flexWrap": "wrap",
1199
- "justifyContent": "flex-start",
1200
- "marginBottom": 8,
1201
- "marginTop": 8,
1202
- }
1219
+ [
1220
+ {
1221
+ "alignSelf": "stretch",
1222
+ },
1223
+ undefined,
1224
+ ]
1203
1225
  }
1204
1226
  >
1205
1227
  <Text
1206
1228
  style={
1207
1229
  {
1208
- "color": "#000000",
1230
+ "alignItems": "flex-start",
1231
+ "flexDirection": "row",
1232
+ "flexWrap": "wrap",
1233
+ "justifyContent": "flex-start",
1234
+ "marginBottom": 8,
1235
+ "marginTop": 8,
1209
1236
  }
1210
1237
  }
1211
1238
  >
1212
- Message4
1239
+ <Text
1240
+ style={
1241
+ {
1242
+ "color": "#000000",
1243
+ }
1244
+ }
1245
+ >
1246
+ Message4
1247
+ </Text>
1213
1248
  </Text>
1214
- </Text>
1249
+ </View>
1215
1250
  </View>
1216
1251
  </View>
1217
1252
  </View>
1218
1253
  </View>
1219
1254
  </View>
1220
- </View>
1221
- <View
1222
- style={
1223
- [
1224
- {
1225
- "alignItems": "center",
1226
- "flexDirection": "row",
1227
- "justifyContent": "center",
1228
- "marginTop": 4,
1229
- },
1230
- {},
1231
- ]
1232
- }
1233
- testID="message-status-time"
1234
- >
1235
- <Text
1236
- style={
1237
- [
1238
- {
1239
- "fontSize": 12,
1240
- },
1241
- {
1242
- "color": "#7A7A7A",
1243
- },
1244
- {},
1245
- ]
1246
- }
1247
- >
1248
- 2:50 PM
1249
- </Text>
1250
- <Text
1251
- style={
1252
- [
1253
- {
1254
- "paddingHorizontal": 4,
1255
- },
1256
- {
1257
- "color": "#7A7A7A",
1258
- "textAlign": "left",
1259
- },
1260
- {
1261
- "fontSize": 12,
1262
- },
1263
- ]
1264
- }
1265
- >
1266
-
1267
- </Text>
1268
- <Text
1255
+ <View
1269
1256
  style={
1270
1257
  [
1271
1258
  {
1272
- "fontSize": 12,
1273
- },
1274
- {
1275
- "color": "#7A7A7A",
1276
- "textAlign": "left",
1259
+ "alignItems": "center",
1260
+ "flexDirection": "row",
1261
+ "justifyContent": "center",
1262
+ "marginTop": 4,
1277
1263
  },
1278
1264
  {},
1279
1265
  ]
1280
1266
  }
1267
+ testID="message-status-time"
1281
1268
  >
1282
- Edited
1283
- </Text>
1269
+ <Text
1270
+ style={
1271
+ [
1272
+ {
1273
+ "fontSize": 12,
1274
+ },
1275
+ {
1276
+ "color": "#7A7A7A",
1277
+ },
1278
+ {},
1279
+ ]
1280
+ }
1281
+ >
1282
+ 2:50 PM
1283
+ </Text>
1284
+ <Text
1285
+ style={
1286
+ [
1287
+ {
1288
+ "paddingHorizontal": 4,
1289
+ },
1290
+ {
1291
+ "color": "#7A7A7A",
1292
+ "textAlign": "left",
1293
+ },
1294
+ {
1295
+ "fontSize": 12,
1296
+ },
1297
+ ]
1298
+ }
1299
+ >
1300
+
1301
+ </Text>
1302
+ <Text
1303
+ style={
1304
+ [
1305
+ {
1306
+ "fontSize": 12,
1307
+ },
1308
+ {
1309
+ "color": "#7A7A7A",
1310
+ "textAlign": "left",
1311
+ },
1312
+ {},
1313
+ ]
1314
+ }
1315
+ >
1316
+ Edited
1317
+ </Text>
1318
+ </View>
1284
1319
  </View>
1285
1320
  </View>
1286
1321
  </View>
1287
1322
  </View>
1288
1323
  </View>
1289
1324
  </View>
1290
- <View
1291
- style={
1292
- [
1293
- {
1294
- "alignItems": "center",
1295
- "alignSelf": "center",
1296
- "borderRadius": 8,
1297
- "height": 16,
1298
- "justifyContent": "center",
1299
- "marginVertical": 4,
1300
- "paddingHorizontal": 8,
1301
- },
1302
- {
1303
- "backgroundColor": "#000000CC",
1304
- },
1305
- {},
1306
- ]
1307
- }
1308
- testID="date-separator"
1309
- >
1310
- <Text
1311
- style={
1312
- [
1313
- {
1314
- "fontSize": 12,
1315
- "textAlign": "center",
1316
- "textAlignVertical": "center",
1317
- },
1318
- {
1319
- "color": "#FFFFFF",
1320
- },
1321
- {},
1322
- ]
1323
- }
1324
- >
1325
- 05/05/2020
1326
- </Text>
1327
- </View>
1328
- <View
1329
- style={
1330
- [
1331
- undefined,
1332
- ]
1333
- }
1334
- />
1335
1325
  </View>
1336
1326
  <View
1337
1327
  onLayout={[Function]}