stream-chat-react-native-core 3.10.2 → 4.0.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 (623) hide show
  1. package/lib/commonjs/components/Attachment/Card.js +18 -15
  2. package/lib/commonjs/components/Attachment/Card.js.map +1 -1
  3. package/lib/commonjs/components/Attachment/Gallery.js +8 -15
  4. package/lib/commonjs/components/Attachment/Gallery.js.map +1 -1
  5. package/lib/commonjs/components/Attachment/Giphy.js +3 -3
  6. package/lib/commonjs/components/Attachment/Giphy.js.map +1 -1
  7. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteInput.js +21 -45
  8. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteInput.js.map +1 -1
  9. package/lib/commonjs/components/AutoCompleteInput/{CommandsItem.js → AutoCompleteSuggestionCommandIcon.js} +21 -94
  10. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.js.map +1 -0
  11. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionHeader.js +145 -0
  12. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionHeader.js.map +1 -0
  13. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionItem.js +248 -0
  14. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionItem.js.map +1 -0
  15. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionList.js +223 -0
  16. package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionList.js.map +1 -0
  17. package/lib/commonjs/components/Avatar/GroupAvatar.js +3 -9
  18. package/lib/commonjs/components/Avatar/GroupAvatar.js.map +1 -1
  19. package/lib/commonjs/components/Channel/Channel.js +293 -208
  20. package/lib/commonjs/components/Channel/Channel.js.map +1 -1
  21. package/lib/commonjs/components/Channel/hooks/useCreateChannelContext.js +5 -5
  22. package/lib/commonjs/components/Channel/hooks/useCreateChannelContext.js.map +1 -1
  23. package/lib/commonjs/components/Channel/hooks/useCreateInputMessageInputContext.js +7 -5
  24. package/lib/commonjs/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
  25. package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js +9 -31
  26. package/lib/commonjs/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
  27. package/lib/commonjs/components/Channel/hooks/useCreateOwnCapabilitiesContext.js +35 -0
  28. package/lib/commonjs/components/Channel/hooks/useCreateOwnCapabilitiesContext.js.map +1 -0
  29. package/lib/commonjs/components/ChannelList/ChannelListFooterLoadingIndicator.js +1 -0
  30. package/lib/commonjs/components/ChannelList/ChannelListFooterLoadingIndicator.js.map +1 -1
  31. package/lib/commonjs/components/ChannelList/ChannelListHeaderNetworkDownIndicator.js +2 -1
  32. package/lib/commonjs/components/ChannelList/ChannelListHeaderNetworkDownIndicator.js.map +1 -1
  33. package/lib/commonjs/components/ChannelList/hooks/usePaginatedChannels.js +32 -20
  34. package/lib/commonjs/components/ChannelList/hooks/usePaginatedChannels.js.map +1 -1
  35. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessenger.js +8 -7
  36. package/lib/commonjs/components/ChannelPreview/ChannelPreviewMessenger.js.map +1 -1
  37. package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.js +16 -7
  38. package/lib/commonjs/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.js.map +1 -1
  39. package/lib/commonjs/components/ChannelPreview/hooks/useLatestMessagePreview.js +2 -1
  40. package/lib/commonjs/components/ChannelPreview/hooks/useLatestMessagePreview.js.map +1 -1
  41. package/lib/commonjs/components/Chat/hooks/useIsOnline.js +12 -5
  42. package/lib/commonjs/components/Chat/hooks/useIsOnline.js.map +1 -1
  43. package/lib/commonjs/components/ImageGallery/ImageGallery.js +1 -2
  44. package/lib/commonjs/components/ImageGallery/ImageGallery.js.map +1 -1
  45. package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js +14 -16
  46. package/lib/commonjs/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
  47. package/lib/commonjs/components/Indicators/LoadingErrorIndicator.js.map +1 -1
  48. package/lib/commonjs/components/Message/Message.js +144 -857
  49. package/lib/commonjs/components/Message/Message.js.map +1 -1
  50. package/lib/commonjs/components/Message/MessageSimple/MessageContent.js +39 -38
  51. package/lib/commonjs/components/Message/MessageSimple/MessageContent.js.map +1 -1
  52. package/lib/commonjs/components/Message/MessageSimple/MessageDeleted.js +4 -2
  53. package/lib/commonjs/components/Message/MessageSimple/MessageDeleted.js.map +1 -1
  54. package/lib/commonjs/components/Message/MessageSimple/MessageFooter.js +24 -16
  55. package/lib/commonjs/components/Message/MessageSimple/MessageFooter.js.map +1 -1
  56. package/lib/commonjs/components/Message/MessageSimple/MessagePinnedHeader.js +122 -0
  57. package/lib/commonjs/components/Message/MessageSimple/MessagePinnedHeader.js.map +1 -0
  58. package/lib/commonjs/components/Message/MessageSimple/MessageReplies.js +5 -1
  59. package/lib/commonjs/components/Message/MessageSimple/MessageReplies.js.map +1 -1
  60. package/lib/commonjs/components/Message/MessageSimple/MessageSimple.js +27 -13
  61. package/lib/commonjs/components/Message/MessageSimple/MessageSimple.js.map +1 -1
  62. package/lib/commonjs/components/Message/MessageSimple/MessageStatus.js +19 -20
  63. package/lib/commonjs/components/Message/MessageSimple/MessageStatus.js.map +1 -1
  64. package/lib/commonjs/components/Message/MessageSimple/MessageTextContainer.js +7 -3
  65. package/lib/commonjs/components/Message/MessageSimple/MessageTextContainer.js.map +1 -1
  66. package/lib/commonjs/components/Message/MessageSimple/ReactionList.js +52 -80
  67. package/lib/commonjs/components/Message/MessageSimple/ReactionList.js.map +1 -1
  68. package/lib/commonjs/components/Message/MessageSimple/utils/renderText.js +30 -11
  69. package/lib/commonjs/components/Message/MessageSimple/utils/renderText.js.map +1 -1
  70. package/lib/commonjs/components/Message/hooks/useCreateMessageContext.js +1 -5
  71. package/lib/commonjs/components/Message/hooks/useCreateMessageContext.js.map +1 -1
  72. package/lib/commonjs/components/Message/hooks/useMessageActionHandlers.js +294 -0
  73. package/lib/commonjs/components/Message/hooks/useMessageActionHandlers.js.map +1 -0
  74. package/lib/commonjs/components/Message/hooks/useMessageActions.js +559 -0
  75. package/lib/commonjs/components/Message/hooks/useMessageActions.js.map +1 -0
  76. package/lib/commonjs/components/Message/utils/messageActions.js +17 -15
  77. package/lib/commonjs/components/Message/utils/messageActions.js.map +1 -1
  78. package/lib/commonjs/components/MessageInput/CooldownTimer.js +78 -0
  79. package/lib/commonjs/components/MessageInput/CooldownTimer.js.map +1 -0
  80. package/lib/commonjs/components/MessageInput/FileUploadPreview.js +2 -2
  81. package/lib/commonjs/components/MessageInput/FileUploadPreview.js.map +1 -1
  82. package/lib/commonjs/components/MessageInput/ImageUploadPreview.js +2 -2
  83. package/lib/commonjs/components/MessageInput/ImageUploadPreview.js.map +1 -1
  84. package/lib/commonjs/components/MessageInput/InputButtons.js +16 -21
  85. package/lib/commonjs/components/MessageInput/InputButtons.js.map +1 -1
  86. package/lib/commonjs/components/MessageInput/MessageInput.js +90 -62
  87. package/lib/commonjs/components/MessageInput/MessageInput.js.map +1 -1
  88. package/lib/commonjs/components/MessageInput/SendMessageDisallowedIndicator.js +71 -0
  89. package/lib/commonjs/components/MessageInput/SendMessageDisallowedIndicator.js.map +1 -0
  90. package/lib/commonjs/components/MessageInput/ShowThreadMessageInChannelButton.js +1 -0
  91. package/lib/commonjs/components/MessageInput/ShowThreadMessageInChannelButton.js.map +1 -1
  92. package/lib/commonjs/components/MessageInput/hooks/useCooldown.js +63 -0
  93. package/lib/commonjs/components/MessageInput/hooks/useCooldown.js.map +1 -0
  94. package/lib/commonjs/components/MessageInput/hooks/useCountdown.js +57 -0
  95. package/lib/commonjs/components/MessageInput/hooks/useCountdown.js.map +1 -0
  96. package/lib/commonjs/components/MessageList/DateHeader.js +2 -2
  97. package/lib/commonjs/components/MessageList/DateHeader.js.map +1 -1
  98. package/lib/commonjs/components/MessageList/InlineDateSeparator.js +2 -2
  99. package/lib/commonjs/components/MessageList/InlineDateSeparator.js.map +1 -1
  100. package/lib/commonjs/components/MessageList/MessageList.js +75 -42
  101. package/lib/commonjs/components/MessageList/MessageList.js.map +1 -1
  102. package/lib/commonjs/components/MessageList/hooks/useMessageList.js +16 -3
  103. package/lib/commonjs/components/MessageList/hooks/useMessageList.js.map +1 -1
  104. package/lib/commonjs/components/MessageList/utils/getDateSeparators.js +2 -1
  105. package/lib/commonjs/components/MessageList/utils/getDateSeparators.js.map +1 -1
  106. package/lib/commonjs/components/MessageList/utils/getGroupStyles.js +10 -5
  107. package/lib/commonjs/components/MessageList/utils/getGroupStyles.js.map +1 -1
  108. package/lib/{module/components/MessageOverlay/MessageActions.js → commonjs/components/MessageOverlay/MessageActionList.js} +33 -85
  109. package/lib/commonjs/components/MessageOverlay/MessageActionList.js.map +1 -0
  110. package/lib/commonjs/components/MessageOverlay/MessageActionListItem.js +131 -0
  111. package/lib/commonjs/components/MessageOverlay/MessageActionListItem.js.map +1 -0
  112. package/lib/commonjs/components/MessageOverlay/MessageOverlay.js +83 -70
  113. package/lib/commonjs/components/MessageOverlay/MessageOverlay.js.map +1 -1
  114. package/lib/commonjs/components/MessageOverlay/OverlayBackdrop.js +38 -0
  115. package/lib/commonjs/components/MessageOverlay/OverlayBackdrop.js.map +1 -0
  116. package/lib/commonjs/components/MessageOverlay/OverlayReactionList.js +1 -0
  117. package/lib/commonjs/components/MessageOverlay/OverlayReactionList.js.map +1 -1
  118. package/lib/commonjs/components/MessageOverlay/hooks/useMessageActionAnimation.js +37 -0
  119. package/lib/commonjs/components/MessageOverlay/hooks/useMessageActionAnimation.js.map +1 -0
  120. package/lib/commonjs/components/Thread/Thread.js +13 -4
  121. package/lib/commonjs/components/Thread/Thread.js.map +1 -1
  122. package/lib/commonjs/components/Thread/components/ThreadFooterComponent.js +9 -1
  123. package/lib/commonjs/components/Thread/components/ThreadFooterComponent.js.map +1 -1
  124. package/lib/commonjs/components/docs/ListProps.md +1 -1
  125. package/lib/commonjs/components/index.js +107 -55
  126. package/lib/commonjs/components/index.js.map +1 -1
  127. package/lib/commonjs/contexts/activeChannelsRefContext/ActiveChannelsRefContext.js +68 -0
  128. package/lib/commonjs/contexts/activeChannelsRefContext/ActiveChannelsRefContext.js.map +1 -0
  129. package/lib/commonjs/contexts/channelContext/ChannelContext.js +2 -2
  130. package/lib/commonjs/contexts/channelContext/ChannelContext.js.map +1 -1
  131. package/lib/commonjs/contexts/channelsContext/ChannelsContext.js.map +1 -1
  132. package/lib/commonjs/contexts/channelsStateContext/ChannelsStateContext.js +155 -0
  133. package/lib/commonjs/contexts/channelsStateContext/ChannelsStateContext.js.map +1 -0
  134. package/lib/commonjs/contexts/channelsStateContext/useChannelState.js +144 -0
  135. package/lib/commonjs/contexts/channelsStateContext/useChannelState.js.map +1 -0
  136. package/lib/commonjs/contexts/messageContext/MessageContext.js +2 -2
  137. package/lib/commonjs/contexts/messageContext/MessageContext.js.map +1 -1
  138. package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js +112 -78
  139. package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js.map +1 -1
  140. package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js +9 -5
  141. package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
  142. package/lib/commonjs/contexts/messageOverlayContext/MessageOverlayContext.js.map +1 -1
  143. package/lib/commonjs/contexts/messagesContext/MessagesContext.js +2 -2
  144. package/lib/commonjs/contexts/messagesContext/MessagesContext.js.map +1 -1
  145. package/lib/commonjs/contexts/overlayContext/OverlayContext.js +1 -1
  146. package/lib/commonjs/contexts/overlayContext/OverlayContext.js.map +1 -1
  147. package/lib/commonjs/contexts/overlayContext/OverlayProvider.js +31 -24
  148. package/lib/commonjs/contexts/overlayContext/OverlayProvider.js.map +1 -1
  149. package/lib/commonjs/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.js +61 -0
  150. package/lib/commonjs/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.js.map +1 -0
  151. package/lib/commonjs/contexts/suggestionsContext/SuggestionsContext.js +19 -32
  152. package/lib/commonjs/contexts/suggestionsContext/SuggestionsContext.js.map +1 -1
  153. package/lib/commonjs/contexts/themeContext/utils/theme.js +25 -9
  154. package/lib/commonjs/contexts/themeContext/utils/theme.js.map +1 -1
  155. package/lib/commonjs/contexts/translationContext/TranslationContext.js.map +1 -1
  156. package/lib/commonjs/contexts/utils/getDisplayName.js.map +1 -1
  157. package/lib/commonjs/emoji-data/compiled.js +0 -315
  158. package/lib/commonjs/emoji-data/compiled.js.map +1 -1
  159. package/lib/commonjs/emoji-data/emojiNames.js +0 -105
  160. package/lib/commonjs/emoji-data/emojiNames.js.map +1 -1
  161. package/lib/commonjs/emoji-data/emojis.js +0 -175
  162. package/lib/commonjs/emoji-data/emojis.js.map +1 -1
  163. package/lib/commonjs/i18n/en.json +9 -3
  164. package/lib/commonjs/i18n/fr.json +9 -3
  165. package/lib/commonjs/i18n/hi.json +9 -3
  166. package/lib/commonjs/i18n/it.json +9 -3
  167. package/lib/commonjs/i18n/ja.json +9 -0
  168. package/lib/commonjs/i18n/ko.json +9 -0
  169. package/lib/commonjs/i18n/nl.json +9 -3
  170. package/lib/commonjs/i18n/ru.json +9 -3
  171. package/lib/commonjs/i18n/tr.json +10 -4
  172. package/lib/commonjs/icons/Pin.js +42 -0
  173. package/lib/commonjs/icons/Pin.js.map +1 -0
  174. package/lib/commonjs/icons/PinHeader.js +38 -0
  175. package/lib/commonjs/icons/PinHeader.js.map +1 -0
  176. package/lib/commonjs/icons/Unpin.js +38 -0
  177. package/lib/commonjs/icons/Unpin.js.map +1 -0
  178. package/lib/commonjs/icons/index.js +39 -0
  179. package/lib/commonjs/icons/index.js.map +1 -1
  180. package/lib/commonjs/mock-builders/api/sendMessage.js +4 -1
  181. package/lib/commonjs/mock-builders/api/sendMessage.js.map +1 -1
  182. package/lib/commonjs/mock-builders/generator/channel.js +1 -0
  183. package/lib/commonjs/mock-builders/generator/channel.js.map +1 -1
  184. package/lib/commonjs/mock-builders/mock.js +2 -2
  185. package/lib/commonjs/mock-builders/mock.js.map +1 -1
  186. package/lib/commonjs/native.js +1 -7
  187. package/lib/commonjs/native.js.map +1 -1
  188. package/lib/commonjs/utils/date.js +13 -0
  189. package/lib/commonjs/utils/date.js.map +1 -0
  190. package/lib/commonjs/utils/utils.js +9 -7
  191. package/lib/commonjs/utils/utils.js.map +1 -1
  192. package/lib/commonjs/version.json +1 -1
  193. package/lib/module/components/Attachment/Card.js +18 -15
  194. package/lib/module/components/Attachment/Card.js.map +1 -1
  195. package/lib/module/components/Attachment/Gallery.js +8 -15
  196. package/lib/module/components/Attachment/Gallery.js.map +1 -1
  197. package/lib/module/components/Attachment/Giphy.js +3 -3
  198. package/lib/module/components/Attachment/Giphy.js.map +1 -1
  199. package/lib/module/components/AutoCompleteInput/AutoCompleteInput.js +21 -45
  200. package/lib/module/components/AutoCompleteInput/AutoCompleteInput.js.map +1 -1
  201. package/lib/module/components/AutoCompleteInput/{CommandsItem.js → AutoCompleteSuggestionCommandIcon.js} +21 -94
  202. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.js.map +1 -0
  203. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionHeader.js +145 -0
  204. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionHeader.js.map +1 -0
  205. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionItem.js +248 -0
  206. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionItem.js.map +1 -0
  207. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionList.js +223 -0
  208. package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionList.js.map +1 -0
  209. package/lib/module/components/Avatar/GroupAvatar.js +3 -9
  210. package/lib/module/components/Avatar/GroupAvatar.js.map +1 -1
  211. package/lib/module/components/Channel/Channel.js +293 -208
  212. package/lib/module/components/Channel/Channel.js.map +1 -1
  213. package/lib/module/components/Channel/hooks/useCreateChannelContext.js +5 -5
  214. package/lib/module/components/Channel/hooks/useCreateChannelContext.js.map +1 -1
  215. package/lib/module/components/Channel/hooks/useCreateInputMessageInputContext.js +7 -5
  216. package/lib/module/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
  217. package/lib/module/components/Channel/hooks/useCreateMessagesContext.js +9 -31
  218. package/lib/module/components/Channel/hooks/useCreateMessagesContext.js.map +1 -1
  219. package/lib/module/components/Channel/hooks/useCreateOwnCapabilitiesContext.js +35 -0
  220. package/lib/module/components/Channel/hooks/useCreateOwnCapabilitiesContext.js.map +1 -0
  221. package/lib/module/components/ChannelList/ChannelListFooterLoadingIndicator.js +1 -0
  222. package/lib/module/components/ChannelList/ChannelListFooterLoadingIndicator.js.map +1 -1
  223. package/lib/module/components/ChannelList/ChannelListHeaderNetworkDownIndicator.js +2 -1
  224. package/lib/module/components/ChannelList/ChannelListHeaderNetworkDownIndicator.js.map +1 -1
  225. package/lib/module/components/ChannelList/hooks/usePaginatedChannels.js +32 -20
  226. package/lib/module/components/ChannelList/hooks/usePaginatedChannels.js.map +1 -1
  227. package/lib/module/components/ChannelPreview/ChannelPreviewMessenger.js +8 -7
  228. package/lib/module/components/ChannelPreview/ChannelPreviewMessenger.js.map +1 -1
  229. package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.js +16 -7
  230. package/lib/module/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.js.map +1 -1
  231. package/lib/module/components/ChannelPreview/hooks/useLatestMessagePreview.js +2 -1
  232. package/lib/module/components/ChannelPreview/hooks/useLatestMessagePreview.js.map +1 -1
  233. package/lib/module/components/Chat/hooks/useIsOnline.js +12 -5
  234. package/lib/module/components/Chat/hooks/useIsOnline.js.map +1 -1
  235. package/lib/module/components/ImageGallery/ImageGallery.js +1 -2
  236. package/lib/module/components/ImageGallery/ImageGallery.js.map +1 -1
  237. package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js +14 -16
  238. package/lib/module/components/ImageGallery/components/ImageGalleryHeader.js.map +1 -1
  239. package/lib/module/components/Indicators/LoadingErrorIndicator.js.map +1 -1
  240. package/lib/module/components/Message/Message.js +144 -857
  241. package/lib/module/components/Message/Message.js.map +1 -1
  242. package/lib/module/components/Message/MessageSimple/MessageContent.js +39 -38
  243. package/lib/module/components/Message/MessageSimple/MessageContent.js.map +1 -1
  244. package/lib/module/components/Message/MessageSimple/MessageDeleted.js +4 -2
  245. package/lib/module/components/Message/MessageSimple/MessageDeleted.js.map +1 -1
  246. package/lib/module/components/Message/MessageSimple/MessageFooter.js +24 -16
  247. package/lib/module/components/Message/MessageSimple/MessageFooter.js.map +1 -1
  248. package/lib/module/components/Message/MessageSimple/MessagePinnedHeader.js +122 -0
  249. package/lib/module/components/Message/MessageSimple/MessagePinnedHeader.js.map +1 -0
  250. package/lib/module/components/Message/MessageSimple/MessageReplies.js +5 -1
  251. package/lib/module/components/Message/MessageSimple/MessageReplies.js.map +1 -1
  252. package/lib/module/components/Message/MessageSimple/MessageSimple.js +27 -13
  253. package/lib/module/components/Message/MessageSimple/MessageSimple.js.map +1 -1
  254. package/lib/module/components/Message/MessageSimple/MessageStatus.js +19 -20
  255. package/lib/module/components/Message/MessageSimple/MessageStatus.js.map +1 -1
  256. package/lib/module/components/Message/MessageSimple/MessageTextContainer.js +7 -3
  257. package/lib/module/components/Message/MessageSimple/MessageTextContainer.js.map +1 -1
  258. package/lib/module/components/Message/MessageSimple/ReactionList.js +52 -80
  259. package/lib/module/components/Message/MessageSimple/ReactionList.js.map +1 -1
  260. package/lib/module/components/Message/MessageSimple/utils/renderText.js +30 -11
  261. package/lib/module/components/Message/MessageSimple/utils/renderText.js.map +1 -1
  262. package/lib/module/components/Message/hooks/useCreateMessageContext.js +1 -5
  263. package/lib/module/components/Message/hooks/useCreateMessageContext.js.map +1 -1
  264. package/lib/module/components/Message/hooks/useMessageActionHandlers.js +294 -0
  265. package/lib/module/components/Message/hooks/useMessageActionHandlers.js.map +1 -0
  266. package/lib/module/components/Message/hooks/useMessageActions.js +559 -0
  267. package/lib/module/components/Message/hooks/useMessageActions.js.map +1 -0
  268. package/lib/module/components/Message/utils/messageActions.js +17 -15
  269. package/lib/module/components/Message/utils/messageActions.js.map +1 -1
  270. package/lib/module/components/MessageInput/CooldownTimer.js +78 -0
  271. package/lib/module/components/MessageInput/CooldownTimer.js.map +1 -0
  272. package/lib/module/components/MessageInput/FileUploadPreview.js +2 -2
  273. package/lib/module/components/MessageInput/FileUploadPreview.js.map +1 -1
  274. package/lib/module/components/MessageInput/ImageUploadPreview.js +2 -2
  275. package/lib/module/components/MessageInput/ImageUploadPreview.js.map +1 -1
  276. package/lib/module/components/MessageInput/InputButtons.js +16 -21
  277. package/lib/module/components/MessageInput/InputButtons.js.map +1 -1
  278. package/lib/module/components/MessageInput/MessageInput.js +90 -62
  279. package/lib/module/components/MessageInput/MessageInput.js.map +1 -1
  280. package/lib/module/components/MessageInput/SendMessageDisallowedIndicator.js +71 -0
  281. package/lib/module/components/MessageInput/SendMessageDisallowedIndicator.js.map +1 -0
  282. package/lib/module/components/MessageInput/ShowThreadMessageInChannelButton.js +1 -0
  283. package/lib/module/components/MessageInput/ShowThreadMessageInChannelButton.js.map +1 -1
  284. package/lib/module/components/MessageInput/hooks/useCooldown.js +63 -0
  285. package/lib/module/components/MessageInput/hooks/useCooldown.js.map +1 -0
  286. package/lib/module/components/MessageInput/hooks/useCountdown.js +57 -0
  287. package/lib/module/components/MessageInput/hooks/useCountdown.js.map +1 -0
  288. package/lib/module/components/MessageList/DateHeader.js +2 -2
  289. package/lib/module/components/MessageList/DateHeader.js.map +1 -1
  290. package/lib/module/components/MessageList/InlineDateSeparator.js +2 -2
  291. package/lib/module/components/MessageList/InlineDateSeparator.js.map +1 -1
  292. package/lib/module/components/MessageList/MessageList.js +75 -42
  293. package/lib/module/components/MessageList/MessageList.js.map +1 -1
  294. package/lib/module/components/MessageList/hooks/useMessageList.js +16 -3
  295. package/lib/module/components/MessageList/hooks/useMessageList.js.map +1 -1
  296. package/lib/module/components/MessageList/utils/getDateSeparators.js +2 -1
  297. package/lib/module/components/MessageList/utils/getDateSeparators.js.map +1 -1
  298. package/lib/module/components/MessageList/utils/getGroupStyles.js +10 -5
  299. package/lib/module/components/MessageList/utils/getGroupStyles.js.map +1 -1
  300. package/lib/{commonjs/components/MessageOverlay/MessageActions.js → module/components/MessageOverlay/MessageActionList.js} +33 -85
  301. package/lib/module/components/MessageOverlay/MessageActionList.js.map +1 -0
  302. package/lib/module/components/MessageOverlay/MessageActionListItem.js +131 -0
  303. package/lib/module/components/MessageOverlay/MessageActionListItem.js.map +1 -0
  304. package/lib/module/components/MessageOverlay/MessageOverlay.js +83 -70
  305. package/lib/module/components/MessageOverlay/MessageOverlay.js.map +1 -1
  306. package/lib/module/components/MessageOverlay/OverlayBackdrop.js +38 -0
  307. package/lib/module/components/MessageOverlay/OverlayBackdrop.js.map +1 -0
  308. package/lib/module/components/MessageOverlay/OverlayReactionList.js +1 -0
  309. package/lib/module/components/MessageOverlay/OverlayReactionList.js.map +1 -1
  310. package/lib/module/components/MessageOverlay/hooks/useMessageActionAnimation.js +37 -0
  311. package/lib/module/components/MessageOverlay/hooks/useMessageActionAnimation.js.map +1 -0
  312. package/lib/module/components/Thread/Thread.js +13 -4
  313. package/lib/module/components/Thread/Thread.js.map +1 -1
  314. package/lib/module/components/Thread/components/ThreadFooterComponent.js +9 -1
  315. package/lib/module/components/Thread/components/ThreadFooterComponent.js.map +1 -1
  316. package/lib/module/components/docs/ListProps.md +1 -1
  317. package/lib/module/components/index.js +107 -55
  318. package/lib/module/components/index.js.map +1 -1
  319. package/lib/module/contexts/activeChannelsRefContext/ActiveChannelsRefContext.js +68 -0
  320. package/lib/module/contexts/activeChannelsRefContext/ActiveChannelsRefContext.js.map +1 -0
  321. package/lib/module/contexts/channelContext/ChannelContext.js +2 -2
  322. package/lib/module/contexts/channelContext/ChannelContext.js.map +1 -1
  323. package/lib/module/contexts/channelsContext/ChannelsContext.js.map +1 -1
  324. package/lib/module/contexts/channelsStateContext/ChannelsStateContext.js +155 -0
  325. package/lib/module/contexts/channelsStateContext/ChannelsStateContext.js.map +1 -0
  326. package/lib/module/contexts/channelsStateContext/useChannelState.js +144 -0
  327. package/lib/module/contexts/channelsStateContext/useChannelState.js.map +1 -0
  328. package/lib/module/contexts/messageContext/MessageContext.js +2 -2
  329. package/lib/module/contexts/messageContext/MessageContext.js.map +1 -1
  330. package/lib/module/contexts/messageInputContext/MessageInputContext.js +112 -78
  331. package/lib/module/contexts/messageInputContext/MessageInputContext.js.map +1 -1
  332. package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js +9 -5
  333. package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
  334. package/lib/module/contexts/messageOverlayContext/MessageOverlayContext.js.map +1 -1
  335. package/lib/module/contexts/messagesContext/MessagesContext.js +2 -2
  336. package/lib/module/contexts/messagesContext/MessagesContext.js.map +1 -1
  337. package/lib/module/contexts/overlayContext/OverlayContext.js +1 -1
  338. package/lib/module/contexts/overlayContext/OverlayContext.js.map +1 -1
  339. package/lib/module/contexts/overlayContext/OverlayProvider.js +31 -24
  340. package/lib/module/contexts/overlayContext/OverlayProvider.js.map +1 -1
  341. package/lib/module/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.js +61 -0
  342. package/lib/module/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.js.map +1 -0
  343. package/lib/module/contexts/suggestionsContext/SuggestionsContext.js +19 -32
  344. package/lib/module/contexts/suggestionsContext/SuggestionsContext.js.map +1 -1
  345. package/lib/module/contexts/themeContext/utils/theme.js +25 -9
  346. package/lib/module/contexts/themeContext/utils/theme.js.map +1 -1
  347. package/lib/module/contexts/translationContext/TranslationContext.js.map +1 -1
  348. package/lib/module/contexts/utils/getDisplayName.js.map +1 -1
  349. package/lib/module/emoji-data/compiled.js +0 -315
  350. package/lib/module/emoji-data/compiled.js.map +1 -1
  351. package/lib/module/emoji-data/emojiNames.js +0 -105
  352. package/lib/module/emoji-data/emojiNames.js.map +1 -1
  353. package/lib/module/emoji-data/emojis.js +0 -175
  354. package/lib/module/emoji-data/emojis.js.map +1 -1
  355. package/lib/module/i18n/en.json +9 -3
  356. package/lib/module/i18n/fr.json +9 -3
  357. package/lib/module/i18n/hi.json +9 -3
  358. package/lib/module/i18n/it.json +9 -3
  359. package/lib/module/i18n/ja.json +9 -0
  360. package/lib/module/i18n/ko.json +9 -0
  361. package/lib/module/i18n/nl.json +9 -3
  362. package/lib/module/i18n/ru.json +9 -3
  363. package/lib/module/i18n/tr.json +10 -4
  364. package/lib/module/icons/Pin.js +42 -0
  365. package/lib/module/icons/Pin.js.map +1 -0
  366. package/lib/module/icons/PinHeader.js +38 -0
  367. package/lib/module/icons/PinHeader.js.map +1 -0
  368. package/lib/module/icons/Unpin.js +38 -0
  369. package/lib/module/icons/Unpin.js.map +1 -0
  370. package/lib/module/icons/index.js +39 -0
  371. package/lib/module/icons/index.js.map +1 -1
  372. package/lib/module/mock-builders/api/sendMessage.js +4 -1
  373. package/lib/module/mock-builders/api/sendMessage.js.map +1 -1
  374. package/lib/module/mock-builders/generator/channel.js +1 -0
  375. package/lib/module/mock-builders/generator/channel.js.map +1 -1
  376. package/lib/module/mock-builders/mock.js +2 -2
  377. package/lib/module/mock-builders/mock.js.map +1 -1
  378. package/lib/module/native.js +1 -7
  379. package/lib/module/native.js.map +1 -1
  380. package/lib/module/utils/date.js +13 -0
  381. package/lib/module/utils/date.js.map +1 -0
  382. package/lib/module/utils/utils.js +9 -7
  383. package/lib/module/utils/utils.js.map +1 -1
  384. package/lib/module/version.json +1 -1
  385. package/lib/typescript/components/Attachment/Card.d.ts +2 -0
  386. package/lib/typescript/components/Attachment/Gallery.d.ts +3 -2
  387. package/lib/typescript/components/AutoCompleteInput/AutoCompleteInput.d.ts +7 -1
  388. package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionCommandIcon.d.ts +4 -0
  389. package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionHeader.d.ts +8 -0
  390. package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionItem.d.ts +10 -0
  391. package/lib/typescript/components/AutoCompleteInput/AutoCompleteSuggestionList.d.ts +22 -0
  392. package/lib/typescript/components/Channel/Channel.d.ts +11 -10
  393. package/lib/typescript/components/Channel/hooks/useCreateChannelContext.d.ts +1 -1
  394. package/lib/typescript/components/Channel/hooks/useCreateInputMessageInputContext.d.ts +1 -68
  395. package/lib/typescript/components/Channel/hooks/useCreateMessagesContext.d.ts +1 -126
  396. package/lib/typescript/components/Channel/hooks/useCreateOwnCapabilitiesContext.d.ts +7 -0
  397. package/lib/typescript/components/ChannelList/hooks/usePaginatedChannels.d.ts +1 -1
  398. package/lib/typescript/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.d.ts +12 -0
  399. package/lib/typescript/components/ImageGallery/ImageGallery.d.ts +1 -0
  400. package/lib/typescript/components/Indicators/LoadingErrorIndicator.d.ts +1 -1
  401. package/lib/typescript/components/Message/Message.d.ts +3 -2
  402. package/lib/typescript/components/Message/MessageSimple/MessageContent.d.ts +1 -1
  403. package/lib/typescript/components/Message/MessageSimple/MessagePinnedHeader.d.ts +8 -0
  404. package/lib/typescript/components/Message/MessageSimple/MessageSimple.d.ts +1 -1
  405. package/lib/typescript/components/Message/MessageSimple/MessageStatus.d.ts +1 -1
  406. package/lib/typescript/components/Message/MessageSimple/MessageTextContainer.d.ts +1 -0
  407. package/lib/typescript/components/Message/MessageSimple/ReactionList.d.ts +2 -1
  408. package/lib/typescript/components/Message/MessageSimple/utils/renderText.d.ts +1 -0
  409. package/lib/typescript/components/Message/hooks/useCreateMessageContext.d.ts +1 -1
  410. package/lib/typescript/components/Message/hooks/useMessageActionHandlers.d.ts +15 -0
  411. package/lib/typescript/components/Message/hooks/useMessageActions.d.ts +26 -0
  412. package/lib/typescript/components/Message/utils/messageActions.d.ts +22 -21
  413. package/lib/typescript/components/MessageInput/CooldownTimer.d.ts +10 -0
  414. package/lib/typescript/components/MessageInput/InputButtons.d.ts +1 -1
  415. package/lib/typescript/components/MessageInput/MessageInput.d.ts +1 -1
  416. package/lib/typescript/components/MessageInput/SendMessageDisallowedIndicator.d.ts +1 -0
  417. package/lib/typescript/components/MessageInput/hooks/useCooldown.d.ts +9 -0
  418. package/lib/typescript/components/MessageInput/hooks/useCountdown.d.ts +8 -0
  419. package/lib/typescript/components/MessageList/MessageList.d.ts +2 -1
  420. package/lib/typescript/components/MessageList/hooks/useMessageList.d.ts +1 -0
  421. package/lib/typescript/components/MessageOverlay/MessageActionList.d.ts +12 -0
  422. package/lib/typescript/components/MessageOverlay/MessageActionListItem.d.ts +20 -0
  423. package/lib/typescript/components/MessageOverlay/MessageOverlay.d.ts +4 -4
  424. package/lib/typescript/components/MessageOverlay/OverlayBackdrop.d.ts +6 -0
  425. package/lib/typescript/components/MessageOverlay/hooks/useMessageActionAnimation.d.ts +12 -0
  426. package/lib/typescript/components/index.d.ts +11 -7
  427. package/lib/typescript/contexts/activeChannelsRefContext/ActiveChannelsRefContext.d.ts +9 -0
  428. package/lib/typescript/contexts/channelContext/ChannelContext.d.ts +28 -30
  429. package/lib/typescript/contexts/channelsContext/ChannelsContext.d.ts +1 -1
  430. package/lib/typescript/contexts/channelsStateContext/ChannelsStateContext.d.ts +41 -0
  431. package/lib/typescript/contexts/channelsStateContext/useChannelState.d.ts +20 -0
  432. package/lib/typescript/contexts/messageContext/MessageContext.d.ts +2 -6
  433. package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts +15 -6
  434. package/lib/typescript/contexts/messageInputContext/hooks/useCreateMessageInputContext.d.ts +1 -1
  435. package/lib/typescript/contexts/messageOverlayContext/MessageOverlayContext.d.ts +8 -11
  436. package/lib/typescript/contexts/messagesContext/MessagesContext.d.ts +15 -106
  437. package/lib/typescript/contexts/overlayContext/OverlayContext.d.ts +10 -3
  438. package/lib/typescript/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.d.ts +25 -0
  439. package/lib/typescript/contexts/suggestionsContext/SuggestionsContext.d.ts +15 -14
  440. package/lib/typescript/contexts/themeContext/utils/theme.d.ts +24 -8
  441. package/lib/typescript/contexts/utils/getDisplayName.d.ts +2 -2
  442. package/lib/typescript/i18n/en.json +9 -3
  443. package/lib/typescript/i18n/fr.json +9 -3
  444. package/lib/typescript/i18n/hi.json +9 -3
  445. package/lib/typescript/i18n/it.json +9 -3
  446. package/lib/typescript/i18n/ja.json +9 -0
  447. package/lib/typescript/i18n/ko.json +9 -0
  448. package/lib/typescript/i18n/nl.json +9 -3
  449. package/lib/typescript/i18n/ru.json +9 -3
  450. package/lib/typescript/i18n/tr.json +10 -4
  451. package/lib/typescript/icons/Pin.d.ts +3 -0
  452. package/lib/typescript/icons/PinHeader.d.ts +3 -0
  453. package/lib/typescript/icons/Unpin.d.ts +3 -0
  454. package/lib/typescript/icons/index.d.ts +3 -0
  455. package/lib/typescript/native.d.ts +1 -9
  456. package/lib/typescript/utils/Streami18n.d.ts +9 -6
  457. package/lib/typescript/utils/date.d.ts +2 -0
  458. package/lib/typescript/utils/utils.d.ts +8 -10
  459. package/package.json +5 -3
  460. package/src/components/Attachment/Card.tsx +5 -1
  461. package/src/components/Attachment/Gallery.tsx +5 -10
  462. package/src/components/Attachment/Giphy.tsx +3 -3
  463. package/src/components/Attachment/__tests__/Attachment.test.js +13 -6
  464. package/src/components/AutoCompleteInput/AutoCompleteInput.tsx +41 -27
  465. package/src/components/AutoCompleteInput/{CommandsItem.tsx → AutoCompleteSuggestionCommandIcon.tsx} +2 -56
  466. package/src/components/AutoCompleteInput/AutoCompleteSuggestionHeader.tsx +109 -0
  467. package/src/components/AutoCompleteInput/AutoCompleteSuggestionItem.tsx +154 -0
  468. package/src/components/AutoCompleteInput/AutoCompleteSuggestionList.tsx +213 -0
  469. package/src/components/AutoCompleteInput/__tests__/AutoCompleteInput.test.js +0 -4
  470. package/src/components/Avatar/GroupAvatar.tsx +0 -19
  471. package/src/components/Avatar/__tests__/Avatar.test.js +0 -28
  472. package/src/components/Channel/Channel.tsx +225 -176
  473. package/src/components/Channel/__tests__/Channel.test.js +25 -20
  474. package/src/components/Channel/__tests__/ownCapabilities.test.js +376 -0
  475. package/src/components/Channel/hooks/useCreateChannelContext.ts +6 -6
  476. package/src/components/Channel/hooks/useCreateInputMessageInputContext.ts +4 -3
  477. package/src/components/Channel/hooks/useCreateMessagesContext.ts +9 -30
  478. package/src/components/Channel/hooks/useCreateOwnCapabilitiesContext.ts +53 -0
  479. package/src/components/ChannelList/ChannelListFooterLoadingIndicator.tsx +1 -1
  480. package/src/components/ChannelList/ChannelListHeaderNetworkDownIndicator.tsx +4 -1
  481. package/src/components/ChannelList/hooks/usePaginatedChannels.ts +16 -4
  482. package/src/components/ChannelPreview/ChannelPreviewMessenger.tsx +4 -1
  483. package/src/components/ChannelPreview/hooks/useChannelPreviewDisplayAvatar.ts +6 -0
  484. package/src/components/ChannelPreview/hooks/useLatestMessagePreview.ts +2 -1
  485. package/src/components/Chat/__tests__/Chat.test.js +6 -2
  486. package/src/components/Chat/hooks/useIsOnline.ts +8 -5
  487. package/src/components/ImageGallery/ImageGallery.tsx +3 -2
  488. package/src/components/ImageGallery/components/ImageGalleryHeader.tsx +4 -5
  489. package/src/components/Indicators/LoadingErrorIndicator.tsx +1 -1
  490. package/src/components/Message/Message.tsx +140 -579
  491. package/src/components/Message/MessageSimple/MessageContent.tsx +21 -22
  492. package/src/components/Message/MessageSimple/MessageDeleted.tsx +5 -2
  493. package/src/components/Message/MessageSimple/MessageFooter.tsx +36 -17
  494. package/src/components/Message/MessageSimple/MessagePinnedHeader.tsx +150 -0
  495. package/src/components/Message/MessageSimple/MessageReplies.tsx +5 -0
  496. package/src/components/Message/MessageSimple/MessageSimple.tsx +47 -26
  497. package/src/components/Message/MessageSimple/MessageStatus.tsx +10 -29
  498. package/src/components/Message/MessageSimple/MessageTextContainer.tsx +5 -0
  499. package/src/components/Message/MessageSimple/ReactionList.tsx +64 -77
  500. package/src/components/Message/MessageSimple/__tests__/Message.test.js +0 -1
  501. package/src/components/Message/MessageSimple/__tests__/MessageContent.test.js +32 -22
  502. package/src/components/Message/MessageSimple/__tests__/MessagePinnedHeader.test.js +53 -0
  503. package/src/components/Message/MessageSimple/__tests__/__snapshots__/MessagePinnedHeader.test.js.snap +80 -0
  504. package/src/components/Message/MessageSimple/utils/renderText.tsx +11 -0
  505. package/src/components/Message/hooks/useCreateMessageContext.ts +0 -5
  506. package/src/components/Message/hooks/useMessageActionHandlers.ts +163 -0
  507. package/src/components/Message/hooks/useMessageActions.tsx +381 -0
  508. package/src/components/Message/utils/messageActions.ts +64 -38
  509. package/src/components/MessageInput/CooldownTimer.tsx +66 -0
  510. package/src/components/MessageInput/FileUploadPreview.tsx +2 -2
  511. package/src/components/MessageInput/ImageUploadPreview.tsx +2 -2
  512. package/src/components/MessageInput/InputButtons.tsx +4 -10
  513. package/src/components/MessageInput/MessageInput.tsx +59 -31
  514. package/src/components/MessageInput/SendMessageDisallowedIndicator.tsx +47 -0
  515. package/src/components/MessageInput/ShowThreadMessageInChannelButton.tsx +1 -1
  516. package/src/components/MessageInput/__tests__/FileUploadPreview.test.js +29 -29
  517. package/src/components/MessageInput/__tests__/ImageUploadPreview.test.js +12 -12
  518. package/src/components/MessageInput/__tests__/MessageInput.test.js +8 -16
  519. package/src/components/MessageInput/__tests__/__snapshots__/FileUploadPreview.test.js.snap +6061 -2789
  520. package/src/components/MessageInput/__tests__/__snapshots__/ImageUploadPreview.test.js.snap +1912 -1572
  521. package/src/components/MessageInput/__tests__/__snapshots__/MessageInput.test.js.snap +1167 -282
  522. package/src/components/MessageInput/__tests__/__snapshots__/UploadProgressIndicator.test.js.snap +4 -4
  523. package/src/components/MessageInput/hooks/useCooldown.ts +60 -0
  524. package/src/components/MessageInput/hooks/useCountdown.ts +47 -0
  525. package/src/components/MessageList/DateHeader.tsx +2 -2
  526. package/src/components/MessageList/InlineDateSeparator.tsx +2 -2
  527. package/src/components/MessageList/MessageList.tsx +60 -36
  528. package/src/components/MessageList/__tests__/MessageList.test.js +231 -106
  529. package/src/components/MessageList/hooks/useMessageList.ts +14 -2
  530. package/src/components/MessageList/utils/getDateSeparators.ts +4 -3
  531. package/src/components/MessageList/utils/getGroupStyles.ts +13 -7
  532. package/src/components/MessageOverlay/{MessageActions.tsx → MessageActionList.tsx} +57 -89
  533. package/src/components/MessageOverlay/MessageActionListItem.tsx +111 -0
  534. package/src/components/MessageOverlay/MessageOverlay.tsx +242 -205
  535. package/src/components/MessageOverlay/OverlayBackdrop.tsx +17 -0
  536. package/src/components/MessageOverlay/OverlayReactionList.tsx +1 -1
  537. package/src/components/MessageOverlay/hooks/useMessageActionAnimation.tsx +43 -0
  538. package/src/components/Thread/Thread.tsx +8 -0
  539. package/src/components/Thread/__tests__/Thread.test.js +28 -101
  540. package/src/components/Thread/__tests__/__snapshots__/Thread.test.js.snap +1085 -1018
  541. package/src/components/Thread/components/ThreadFooterComponent.tsx +13 -1
  542. package/src/components/docs/ListProps.md +1 -1
  543. package/src/components/index.ts +11 -7
  544. package/src/contexts/activeChannelsRefContext/ActiveChannelsRefContext.tsx +33 -0
  545. package/src/contexts/channelContext/ChannelContext.tsx +27 -30
  546. package/src/contexts/channelsContext/ChannelsContext.tsx +1 -1
  547. package/src/contexts/channelsStateContext/ChannelsStateContext.tsx +287 -0
  548. package/src/contexts/channelsStateContext/useChannelState.ts +206 -0
  549. package/src/contexts/messageContext/MessageContext.tsx +1 -8
  550. package/src/contexts/messageInputContext/MessageInputContext.tsx +56 -18
  551. package/src/contexts/messageInputContext/hooks/useCreateMessageInputContext.ts +7 -3
  552. package/src/contexts/messageOverlayContext/MessageOverlayContext.tsx +12 -12
  553. package/src/contexts/messagesContext/MessagesContext.tsx +28 -129
  554. package/src/contexts/overlayContext/OverlayContext.tsx +10 -4
  555. package/src/contexts/overlayContext/OverlayProvider.tsx +21 -20
  556. package/src/contexts/ownCapabilitiesContext/OwnCapabilitiesContext.tsx +38 -0
  557. package/src/contexts/suggestionsContext/SuggestionsContext.tsx +27 -48
  558. package/src/contexts/suggestionsContext/__tests__/Suggestions.test.js +0 -1
  559. package/src/contexts/themeContext/utils/theme.ts +48 -16
  560. package/src/contexts/translationContext/TranslationContext.tsx +1 -1
  561. package/src/contexts/utils/getDisplayName.ts +2 -1
  562. package/src/emoji-data/compiled.ts +1830 -9609
  563. package/src/emoji-data/emojiNames.ts +0 -140
  564. package/src/emoji-data/emojis.ts +0 -210
  565. package/src/i18n/en.json +9 -3
  566. package/src/i18n/fr.json +9 -3
  567. package/src/i18n/hi.json +9 -3
  568. package/src/i18n/it.json +9 -3
  569. package/src/i18n/ja.json +9 -0
  570. package/src/i18n/ko.json +9 -0
  571. package/src/i18n/nl.json +9 -3
  572. package/src/i18n/ru.json +9 -3
  573. package/src/i18n/tr.json +10 -4
  574. package/src/icons/Pin.tsx +17 -0
  575. package/src/icons/PinHeader.tsx +12 -0
  576. package/src/icons/Unpin.tsx +12 -0
  577. package/src/icons/index.ts +3 -0
  578. package/src/mock-builders/api/sendMessage.js +3 -2
  579. package/src/mock-builders/generator/channel.js +18 -0
  580. package/src/mock-builders/mock.js +2 -2
  581. package/src/native.ts +1 -13
  582. package/src/utils/date.ts +4 -0
  583. package/src/utils/utils.ts +14 -12
  584. package/src/version.json +1 -1
  585. package/lib/commonjs/components/AutoCompleteInput/CommandsHeader.js +0 -78
  586. package/lib/commonjs/components/AutoCompleteInput/CommandsHeader.js.map +0 -1
  587. package/lib/commonjs/components/AutoCompleteInput/CommandsItem.js.map +0 -1
  588. package/lib/commonjs/components/AutoCompleteInput/EmojisHeader.js +0 -81
  589. package/lib/commonjs/components/AutoCompleteInput/EmojisHeader.js.map +0 -1
  590. package/lib/commonjs/components/AutoCompleteInput/EmojisItem.js +0 -75
  591. package/lib/commonjs/components/AutoCompleteInput/EmojisItem.js.map +0 -1
  592. package/lib/commonjs/components/AutoCompleteInput/MentionsItem.js +0 -125
  593. package/lib/commonjs/components/AutoCompleteInput/MentionsItem.js.map +0 -1
  594. package/lib/commonjs/components/AutoCompleteInput/SuggestionsList.js +0 -199
  595. package/lib/commonjs/components/AutoCompleteInput/SuggestionsList.js.map +0 -1
  596. package/lib/commonjs/components/MessageOverlay/MessageActions.js.map +0 -1
  597. package/lib/module/components/AutoCompleteInput/CommandsHeader.js +0 -78
  598. package/lib/module/components/AutoCompleteInput/CommandsHeader.js.map +0 -1
  599. package/lib/module/components/AutoCompleteInput/CommandsItem.js.map +0 -1
  600. package/lib/module/components/AutoCompleteInput/EmojisHeader.js +0 -81
  601. package/lib/module/components/AutoCompleteInput/EmojisHeader.js.map +0 -1
  602. package/lib/module/components/AutoCompleteInput/EmojisItem.js +0 -75
  603. package/lib/module/components/AutoCompleteInput/EmojisItem.js.map +0 -1
  604. package/lib/module/components/AutoCompleteInput/MentionsItem.js +0 -125
  605. package/lib/module/components/AutoCompleteInput/MentionsItem.js.map +0 -1
  606. package/lib/module/components/AutoCompleteInput/SuggestionsList.js +0 -199
  607. package/lib/module/components/AutoCompleteInput/SuggestionsList.js.map +0 -1
  608. package/lib/module/components/MessageOverlay/MessageActions.js.map +0 -1
  609. package/lib/typescript/components/AutoCompleteInput/CommandsHeader.d.ts +0 -2
  610. package/lib/typescript/components/AutoCompleteInput/CommandsItem.d.ts +0 -15
  611. package/lib/typescript/components/AutoCompleteInput/EmojisHeader.d.ts +0 -5
  612. package/lib/typescript/components/AutoCompleteInput/EmojisItem.d.ts +0 -12
  613. package/lib/typescript/components/AutoCompleteInput/MentionsItem.d.ts +0 -16
  614. package/lib/typescript/components/AutoCompleteInput/SuggestionsList.d.ts +0 -13
  615. package/lib/typescript/components/MessageOverlay/MessageActions.d.ts +0 -11
  616. package/src/components/AutoCompleteInput/CommandsHeader.tsx +0 -43
  617. package/src/components/AutoCompleteInput/EmojisHeader.tsx +0 -45
  618. package/src/components/AutoCompleteInput/EmojisItem.tsx +0 -52
  619. package/src/components/AutoCompleteInput/MentionsItem.tsx +0 -74
  620. package/src/components/AutoCompleteInput/SuggestionsList.tsx +0 -138
  621. package/src/components/AutoCompleteInput/__tests__/CommandsItem.test.js +0 -26
  622. package/src/components/AutoCompleteInput/__tests__/MentionsItem.test.js +0 -62
  623. package/src/components/MessageList/__tests__/__snapshots__/MessageList.test.js.snap +0 -936
@@ -1,18 +1,71 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`ImageUploadPreview should render ImageUploadPreview with 1 uploading, 1 uploaded, and 1 failed image 1`] = `
4
- <View>
4
+ <RCTScrollView
5
+ data={
6
+ Array [
7
+ Object {
8
+ "file": Object {
9
+ "uri": "http://www.jackblack.com/tenac_iousd.bmp",
10
+ },
11
+ "id": "image-upload-preview-1",
12
+ "state": "uploading",
13
+ },
14
+ Object {
15
+ "file": Object {
16
+ "uri": "http://www.jackblack.com/tenac_iousd.bmp",
17
+ },
18
+ "id": "image-upload-preview-2",
19
+ "state": "uploaded",
20
+ },
21
+ Object {
22
+ "file": Object {
23
+ "uri": "http://www.jackblack.com/tenac_iousd.bmp",
24
+ },
25
+ "id": "image-upload-preview-3",
26
+ "state": "upload_failed",
27
+ },
28
+ ]
29
+ }
30
+ disableVirtualization={false}
31
+ getItem={[Function]}
32
+ getItemCount={[Function]}
33
+ getItemLayout={[Function]}
34
+ horizontal={true}
35
+ initialNumToRender={10}
36
+ keyExtractor={[Function]}
37
+ maxToRenderPerBatch={10}
38
+ onContentSizeChange={[Function]}
39
+ onEndReachedThreshold={2}
40
+ onLayout={[Function]}
41
+ onMomentumScrollEnd={[Function]}
42
+ onScroll={[Function]}
43
+ onScrollBeginDrag={[Function]}
44
+ onScrollEndDrag={[Function]}
45
+ removeClippedSubviews={false}
46
+ renderItem={[Function]}
47
+ scrollEventThrottle={50}
48
+ stickyHeaderIndices={Array []}
49
+ style={
50
+ Array [
51
+ Object {
52
+ "paddingBottom": 12,
53
+ },
54
+ Object {},
55
+ ]
56
+ }
57
+ updateCellsBatchingPeriod={50}
58
+ viewabilityConfigCallbackPairs={Array []}
59
+ windowSize={21}
60
+ >
5
61
  <View>
6
62
  <View
7
63
  style={
8
64
  Array [
9
65
  Object {
10
66
  "flexDirection": "row",
11
- "height": 100,
12
- "marginLeft": 8,
13
67
  },
14
- Object {},
15
- Object {},
68
+ null,
16
69
  ]
17
70
  }
18
71
  >
@@ -20,171 +73,180 @@ exports[`ImageUploadPreview should render ImageUploadPreview with 1 uploading, 1
20
73
  style={
21
74
  Array [
22
75
  Object {
23
- "overflow": "hidden",
24
- },
25
- Object {
26
- "borderRadius": 10,
76
+ "flexDirection": "row",
27
77
  "height": 100,
28
- "width": 100,
78
+ "marginLeft": 8,
29
79
  },
80
+ Object {},
81
+ Object {},
30
82
  ]
31
83
  }
32
- testID="active-upload-progress-indicator"
33
84
  >
34
- <Image
35
- resizeMode="cover"
36
- source={
37
- Object {
38
- "uri": "http://www.jackblack.com/tenac_iousd.bmp",
39
- }
40
- }
41
- style={
42
- Array [
43
- Object {
44
- "borderRadius": 10,
45
- "height": 100,
46
- "width": 100,
47
- },
48
- Object {},
49
- ]
50
- }
51
- />
52
- <View
53
- style={
54
- Array [
55
- Object {
56
- "alignItems": "center",
57
- "height": "100%",
58
- "justifyContent": "center",
59
- "opacity": 0,
60
- "position": "absolute",
61
- "width": "100%",
62
- },
63
- Object {
64
- "backgroundColor": "#00000033",
65
- },
66
- Object {},
67
- ]
68
- }
69
- />
70
85
  <View
71
86
  style={
72
87
  Array [
73
88
  Object {
74
- "alignItems": "center",
75
- "height": "100%",
76
- "justifyContent": "center",
77
- "position": "absolute",
78
- "width": "100%",
89
+ "overflow": "hidden",
79
90
  },
80
91
  Object {
81
- "backgroundColor": "#00000033",
92
+ "borderRadius": 10,
93
+ "height": 100,
94
+ "width": 100,
82
95
  },
83
- Object {},
84
96
  ]
85
97
  }
98
+ testID="active-upload-progress-indicator"
86
99
  >
87
- <View
88
- style={
100
+ <Image
101
+ resizeMode="cover"
102
+ source={
89
103
  Object {
90
- "alignItems": "center",
91
- "bottom": 0,
92
- "justifyContent": "center",
93
- "left": 0,
94
- "position": "absolute",
95
- "right": 0,
96
- "top": 0,
104
+ "uri": "http://www.jackblack.com/tenac_iousd.bmp",
97
105
  }
98
106
  }
107
+ style={
108
+ Array [
109
+ Object {
110
+ "borderRadius": 10,
111
+ "height": 100,
112
+ "width": 100,
113
+ },
114
+ Object {},
115
+ ]
116
+ }
117
+ />
118
+ <View
119
+ style={
120
+ Array [
121
+ Object {
122
+ "alignItems": "center",
123
+ "height": "100%",
124
+ "justifyContent": "center",
125
+ "opacity": 0,
126
+ "position": "absolute",
127
+ "width": "100%",
128
+ },
129
+ Object {
130
+ "backgroundColor": "#000000CC",
131
+ },
132
+ Object {},
133
+ ]
134
+ }
135
+ />
136
+ <View
137
+ style={
138
+ Array [
139
+ Object {
140
+ "alignItems": "center",
141
+ "height": "100%",
142
+ "justifyContent": "center",
143
+ "position": "absolute",
144
+ "width": "100%",
145
+ },
146
+ Object {
147
+ "backgroundColor": "#000000CC",
148
+ },
149
+ Object {},
150
+ ]
151
+ }
99
152
  >
100
- <ActivityIndicator
101
- animating={true}
102
- color="#F2F2F2"
103
- hidesWhenStopped={true}
104
- size="small"
105
- testID="upload-progress-indicator"
106
- />
153
+ <View
154
+ style={
155
+ Object {
156
+ "alignItems": "center",
157
+ "bottom": 0,
158
+ "justifyContent": "center",
159
+ "left": 0,
160
+ "position": "absolute",
161
+ "right": 0,
162
+ "top": 0,
163
+ }
164
+ }
165
+ >
166
+ <ActivityIndicator
167
+ animating={true}
168
+ color="#F2F2F2"
169
+ hidesWhenStopped={true}
170
+ size="small"
171
+ testID="upload-progress-indicator"
172
+ />
173
+ </View>
107
174
  </View>
108
175
  </View>
109
- </View>
110
- <View
111
- accessible={true}
112
- focusable={true}
113
- onClick={[Function]}
114
- onResponderGrant={[Function]}
115
- onResponderMove={[Function]}
116
- onResponderRelease={[Function]}
117
- onResponderTerminate={[Function]}
118
- onResponderTerminationRequest={[Function]}
119
- onStartShouldSetResponder={[Function]}
120
- style={
121
- Object {
122
- "backgroundColor": "#00000099",
123
- "borderRadius": 24,
124
- "opacity": 1,
125
- "position": "absolute",
126
- "right": 8,
127
- "top": 8,
128
- }
129
- }
130
- testID="remove-image-upload-preview"
131
- >
132
- <RNSVGSvgView
133
- align="xMidYMid"
134
- bbHeight={24}
135
- bbWidth={24}
136
- focusable={false}
137
- height={24}
138
- meetOrSlice={0}
139
- minX={0}
140
- minY={0}
141
- pathFill="#FFFFFF"
176
+ <View
177
+ accessible={true}
178
+ focusable={true}
179
+ onClick={[Function]}
180
+ onResponderGrant={[Function]}
181
+ onResponderMove={[Function]}
182
+ onResponderRelease={[Function]}
183
+ onResponderTerminate={[Function]}
184
+ onResponderTerminationRequest={[Function]}
185
+ onStartShouldSetResponder={[Function]}
142
186
  style={
143
- Array [
144
- Object {
145
- "backgroundColor": "transparent",
146
- "borderWidth": 0,
147
- },
148
- Object {
149
- "flex": 0,
150
- "height": 24,
151
- "width": 24,
152
- },
153
- ]
187
+ Object {
188
+ "backgroundColor": "#000000CC",
189
+ "borderRadius": 24,
190
+ "opacity": 1,
191
+ "position": "absolute",
192
+ "right": 8,
193
+ "top": 8,
194
+ }
154
195
  }
155
- vbHeight={24}
156
- vbWidth={24}
157
- width={24}
196
+ testID="remove-image-upload-preview"
158
197
  >
159
- <RNSVGGroup>
160
- <RNSVGPath
161
- clipRule={0}
162
- d="M7.05 7.05a1 1 0 000 1.414L10.586 12 7.05 15.536a1 1 0 101.414 1.414L12 13.414l3.536 3.536a1 1 0 001.414-1.414L13.414 12l3.536-3.536a1 1 0 00-1.414-1.414L12 10.586 8.464 7.05a1 1 0 00-1.414 0z"
163
- fill={4294967295}
164
- fillRule={0}
165
- propList={
166
- Array [
167
- "fill",
168
- "fillRule",
169
- ]
170
- }
171
- />
172
- </RNSVGGroup>
173
- </RNSVGSvgView>
198
+ <RNSVGSvgView
199
+ align="xMidYMid"
200
+ bbHeight={24}
201
+ bbWidth={24}
202
+ focusable={false}
203
+ height={24}
204
+ meetOrSlice={0}
205
+ minX={0}
206
+ minY={0}
207
+ pathFill="#FFFFFF"
208
+ style={
209
+ Array [
210
+ Object {
211
+ "backgroundColor": "transparent",
212
+ "borderWidth": 0,
213
+ },
214
+ Object {
215
+ "flex": 0,
216
+ "height": 24,
217
+ "width": 24,
218
+ },
219
+ ]
220
+ }
221
+ vbHeight={24}
222
+ vbWidth={24}
223
+ width={24}
224
+ >
225
+ <RNSVGGroup>
226
+ <RNSVGPath
227
+ clipRule={0}
228
+ d="M7.05 7.05a1 1 0 000 1.414L10.586 12 7.05 15.536a1 1 0 101.414 1.414L12 13.414l3.536 3.536a1 1 0 001.414-1.414L13.414 12l3.536-3.536a1 1 0 00-1.414-1.414L12 10.586 8.464 7.05a1 1 0 00-1.414 0z"
229
+ fill={4294967295}
230
+ fillRule={0}
231
+ propList={
232
+ Array [
233
+ "fill",
234
+ "fillRule",
235
+ ]
236
+ }
237
+ />
238
+ </RNSVGGroup>
239
+ </RNSVGSvgView>
240
+ </View>
174
241
  </View>
175
242
  </View>
176
- </View>
177
- <View>
178
243
  <View
179
244
  style={
180
245
  Array [
181
246
  Object {
182
247
  "flexDirection": "row",
183
- "height": 100,
184
- "marginLeft": 8,
185
248
  },
186
- Object {},
187
- Object {},
249
+ null,
188
250
  ]
189
251
  }
190
252
  >
@@ -192,116 +254,123 @@ exports[`ImageUploadPreview should render ImageUploadPreview with 1 uploading, 1
192
254
  style={
193
255
  Array [
194
256
  Object {
195
- "overflow": "hidden",
196
- },
197
- Object {
198
- "borderRadius": 10,
257
+ "flexDirection": "row",
199
258
  "height": 100,
200
- "width": 100,
259
+ "marginLeft": 8,
201
260
  },
261
+ Object {},
262
+ Object {},
202
263
  ]
203
264
  }
204
- testID="inactive-upload-progress-indicator"
205
265
  >
206
- <Image
207
- resizeMode="cover"
208
- source={
209
- Object {
210
- "uri": "http://www.jackblack.com/tenac_iousd.bmp",
211
- }
212
- }
266
+ <View
213
267
  style={
214
268
  Array [
269
+ Object {
270
+ "overflow": "hidden",
271
+ },
215
272
  Object {
216
273
  "borderRadius": 10,
217
274
  "height": 100,
218
275
  "width": 100,
219
276
  },
220
- Object {},
221
277
  ]
222
278
  }
223
- />
224
- </View>
225
- <View
226
- accessible={true}
227
- focusable={true}
228
- onClick={[Function]}
229
- onResponderGrant={[Function]}
230
- onResponderMove={[Function]}
231
- onResponderRelease={[Function]}
232
- onResponderTerminate={[Function]}
233
- onResponderTerminationRequest={[Function]}
234
- onStartShouldSetResponder={[Function]}
235
- style={
236
- Object {
237
- "backgroundColor": "#00000099",
238
- "borderRadius": 24,
239
- "opacity": 1,
240
- "position": "absolute",
241
- "right": 8,
242
- "top": 8,
243
- }
244
- }
245
- testID="remove-image-upload-preview"
246
- >
247
- <RNSVGSvgView
248
- align="xMidYMid"
249
- bbHeight={24}
250
- bbWidth={24}
251
- focusable={false}
252
- height={24}
253
- meetOrSlice={0}
254
- minX={0}
255
- minY={0}
256
- pathFill="#FFFFFF"
257
- style={
258
- Array [
259
- Object {
260
- "backgroundColor": "transparent",
261
- "borderWidth": 0,
262
- },
279
+ testID="inactive-upload-progress-indicator"
280
+ >
281
+ <Image
282
+ resizeMode="cover"
283
+ source={
263
284
  Object {
264
- "flex": 0,
265
- "height": 24,
266
- "width": 24,
267
- },
268
- ]
285
+ "uri": "http://www.jackblack.com/tenac_iousd.bmp",
286
+ }
287
+ }
288
+ style={
289
+ Array [
290
+ Object {
291
+ "borderRadius": 10,
292
+ "height": 100,
293
+ "width": 100,
294
+ },
295
+ Object {},
296
+ ]
297
+ }
298
+ />
299
+ </View>
300
+ <View
301
+ accessible={true}
302
+ focusable={true}
303
+ onClick={[Function]}
304
+ onResponderGrant={[Function]}
305
+ onResponderMove={[Function]}
306
+ onResponderRelease={[Function]}
307
+ onResponderTerminate={[Function]}
308
+ onResponderTerminationRequest={[Function]}
309
+ onStartShouldSetResponder={[Function]}
310
+ style={
311
+ Object {
312
+ "backgroundColor": "#000000CC",
313
+ "borderRadius": 24,
314
+ "opacity": 1,
315
+ "position": "absolute",
316
+ "right": 8,
317
+ "top": 8,
318
+ }
269
319
  }
270
- vbHeight={24}
271
- vbWidth={24}
272
- width={24}
320
+ testID="remove-image-upload-preview"
273
321
  >
274
- <RNSVGGroup>
275
- <RNSVGPath
276
- clipRule={0}
277
- d="M7.05 7.05a1 1 0 000 1.414L10.586 12 7.05 15.536a1 1 0 101.414 1.414L12 13.414l3.536 3.536a1 1 0 001.414-1.414L13.414 12l3.536-3.536a1 1 0 00-1.414-1.414L12 10.586 8.464 7.05a1 1 0 00-1.414 0z"
278
- fill={4294967295}
279
- fillRule={0}
280
- propList={
281
- Array [
282
- "fill",
283
- "fillRule",
284
- ]
285
- }
286
- />
287
- </RNSVGGroup>
288
- </RNSVGSvgView>
322
+ <RNSVGSvgView
323
+ align="xMidYMid"
324
+ bbHeight={24}
325
+ bbWidth={24}
326
+ focusable={false}
327
+ height={24}
328
+ meetOrSlice={0}
329
+ minX={0}
330
+ minY={0}
331
+ pathFill="#FFFFFF"
332
+ style={
333
+ Array [
334
+ Object {
335
+ "backgroundColor": "transparent",
336
+ "borderWidth": 0,
337
+ },
338
+ Object {
339
+ "flex": 0,
340
+ "height": 24,
341
+ "width": 24,
342
+ },
343
+ ]
344
+ }
345
+ vbHeight={24}
346
+ vbWidth={24}
347
+ width={24}
348
+ >
349
+ <RNSVGGroup>
350
+ <RNSVGPath
351
+ clipRule={0}
352
+ d="M7.05 7.05a1 1 0 000 1.414L10.586 12 7.05 15.536a1 1 0 101.414 1.414L12 13.414l3.536 3.536a1 1 0 001.414-1.414L13.414 12l3.536-3.536a1 1 0 00-1.414-1.414L12 10.586 8.464 7.05a1 1 0 00-1.414 0z"
353
+ fill={4294967295}
354
+ fillRule={0}
355
+ propList={
356
+ Array [
357
+ "fill",
358
+ "fillRule",
359
+ ]
360
+ }
361
+ />
362
+ </RNSVGGroup>
363
+ </RNSVGSvgView>
364
+ </View>
289
365
  </View>
290
366
  </View>
291
- </View>
292
- <View>
293
367
  <View
294
368
  style={
295
369
  Array [
296
370
  Object {
297
371
  "flexDirection": "row",
298
- "height": 100,
299
- "marginLeft": 8,
300
372
  },
301
- Object {
302
- "marginRight": 8,
303
- },
304
- Object {},
373
+ null,
305
374
  ]
306
375
  }
307
376
  >
@@ -309,222 +378,291 @@ exports[`ImageUploadPreview should render ImageUploadPreview with 1 uploading, 1
309
378
  style={
310
379
  Array [
311
380
  Object {
312
- "overflow": "hidden",
381
+ "flexDirection": "row",
382
+ "height": 100,
383
+ "marginLeft": 8,
313
384
  },
314
385
  Object {
315
- "borderRadius": 10,
316
- "height": 100,
317
- "width": 100,
386
+ "marginRight": 8,
318
387
  },
388
+ Object {},
319
389
  ]
320
390
  }
321
- testID="active-upload-progress-indicator"
322
391
  >
323
- <Image
324
- resizeMode="cover"
325
- source={
326
- Object {
327
- "uri": "http://www.jackblack.com/tenac_iousd.bmp",
328
- }
329
- }
330
- style={
331
- Array [
332
- Object {
333
- "borderRadius": 10,
334
- "height": 100,
335
- "width": 100,
336
- },
337
- Object {},
338
- ]
339
- }
340
- />
341
- <View
342
- style={
343
- Array [
344
- Object {
345
- "alignItems": "center",
346
- "height": "100%",
347
- "justifyContent": "center",
348
- "opacity": 0,
349
- "position": "absolute",
350
- "width": "100%",
351
- },
352
- Object {
353
- "backgroundColor": "#00000033",
354
- },
355
- Object {},
356
- ]
357
- }
358
- />
359
392
  <View
360
393
  style={
361
394
  Array [
362
395
  Object {
363
- "alignItems": "center",
364
- "height": "100%",
365
- "justifyContent": "center",
366
- "position": "absolute",
367
- "width": "100%",
396
+ "overflow": "hidden",
368
397
  },
369
398
  Object {
370
- "backgroundColor": "#00000033",
399
+ "borderRadius": 10,
400
+ "height": 100,
401
+ "width": 100,
371
402
  },
372
- Object {},
373
403
  ]
374
404
  }
405
+ testID="active-upload-progress-indicator"
375
406
  >
376
- <View
377
- accessible={true}
378
- focusable={true}
379
- onClick={[Function]}
380
- onResponderGrant={[Function]}
381
- onResponderMove={[Function]}
382
- onResponderRelease={[Function]}
383
- onResponderTerminate={[Function]}
384
- onResponderTerminationRequest={[Function]}
385
- onStartShouldSetResponder={[Function]}
386
- style={
407
+ <Image
408
+ resizeMode="cover"
409
+ source={
387
410
  Object {
388
- "alignItems": "center",
389
- "bottom": 0,
390
- "justifyContent": "center",
391
- "left": 0,
392
- "opacity": 1,
393
- "position": "absolute",
394
- "right": 0,
395
- "top": 0,
411
+ "uri": "http://www.jackblack.com/tenac_iousd.bmp",
396
412
  }
397
413
  }
414
+ style={
415
+ Array [
416
+ Object {
417
+ "borderRadius": 10,
418
+ "height": 100,
419
+ "width": 100,
420
+ },
421
+ Object {},
422
+ ]
423
+ }
424
+ />
425
+ <View
426
+ style={
427
+ Array [
428
+ Object {
429
+ "alignItems": "center",
430
+ "height": "100%",
431
+ "justifyContent": "center",
432
+ "opacity": 0,
433
+ "position": "absolute",
434
+ "width": "100%",
435
+ },
436
+ Object {
437
+ "backgroundColor": "#000000CC",
438
+ },
439
+ Object {},
440
+ ]
441
+ }
442
+ />
443
+ <View
444
+ style={
445
+ Array [
446
+ Object {
447
+ "alignItems": "center",
448
+ "height": "100%",
449
+ "justifyContent": "center",
450
+ "position": "absolute",
451
+ "width": "100%",
452
+ },
453
+ Object {
454
+ "backgroundColor": "#000000CC",
455
+ },
456
+ Object {},
457
+ ]
458
+ }
398
459
  >
399
- <RNSVGSvgView
400
- align="xMidYMid"
401
- bbHeight={18}
402
- bbWidth={18}
403
- focusable={false}
404
- height={18}
405
- meetOrSlice={0}
406
- minX={0}
407
- minY={0}
408
- pathFill="#F2F2F2"
460
+ <View
461
+ accessible={true}
462
+ focusable={true}
463
+ onClick={[Function]}
464
+ onResponderGrant={[Function]}
465
+ onResponderMove={[Function]}
466
+ onResponderRelease={[Function]}
467
+ onResponderTerminate={[Function]}
468
+ onResponderTerminationRequest={[Function]}
469
+ onStartShouldSetResponder={[Function]}
409
470
  style={
410
- Array [
411
- Object {
412
- "backgroundColor": "transparent",
413
- "borderWidth": 0,
414
- },
415
- Object {
416
- "flex": 0,
417
- "height": 18,
418
- "width": 18,
419
- },
420
- ]
471
+ Object {
472
+ "alignItems": "center",
473
+ "bottom": 0,
474
+ "justifyContent": "center",
475
+ "left": 0,
476
+ "opacity": 1,
477
+ "position": "absolute",
478
+ "right": 0,
479
+ "top": 0,
480
+ }
421
481
  }
422
- testID="retry-upload-progress-indicator"
423
- vbHeight={24}
424
- vbWidth={24}
425
- width={18}
426
482
  >
427
- <RNSVGGroup>
428
- <RNSVGPath
429
- clipRule={0}
430
- d="M12.868 4.221a8 8 0 102.834 14.251 1 1 0 00-1.175-1.618A6 6 0 1112.4 6.166c1.31.314 2.52.803 3.31 2.12.154.254.266.485.348.708h-1.152a1 1 0 00-.81 1.585l2.375 3.291a1 1 0 001.621 0l2.376-3.291a1 1 0 00-.811-1.585h-1.509c-.128-.639-.377-1.24-.867-1.947a8 8 0 00-4.414-2.826z"
431
- fill={4294111986}
432
- fillRule={0}
433
- propList={
434
- Array [
435
- "fill",
436
- "fillRule",
437
- ]
438
- }
439
- />
440
- </RNSVGGroup>
441
- </RNSVGSvgView>
483
+ <RNSVGSvgView
484
+ align="xMidYMid"
485
+ bbHeight={18}
486
+ bbWidth={18}
487
+ focusable={false}
488
+ height={18}
489
+ meetOrSlice={0}
490
+ minX={0}
491
+ minY={0}
492
+ pathFill="#F2F2F2"
493
+ style={
494
+ Array [
495
+ Object {
496
+ "backgroundColor": "transparent",
497
+ "borderWidth": 0,
498
+ },
499
+ Object {
500
+ "flex": 0,
501
+ "height": 18,
502
+ "width": 18,
503
+ },
504
+ ]
505
+ }
506
+ testID="retry-upload-progress-indicator"
507
+ vbHeight={24}
508
+ vbWidth={24}
509
+ width={18}
510
+ >
511
+ <RNSVGGroup>
512
+ <RNSVGPath
513
+ clipRule={0}
514
+ d="M12.868 4.221a8 8 0 102.834 14.251 1 1 0 00-1.175-1.618A6 6 0 1112.4 6.166c1.31.314 2.52.803 3.31 2.12.154.254.266.485.348.708h-1.152a1 1 0 00-.81 1.585l2.375 3.291a1 1 0 001.621 0l2.376-3.291a1 1 0 00-.811-1.585h-1.509c-.128-.639-.377-1.24-.867-1.947a8 8 0 00-4.414-2.826z"
515
+ fill={4294111986}
516
+ fillRule={0}
517
+ propList={
518
+ Array [
519
+ "fill",
520
+ "fillRule",
521
+ ]
522
+ }
523
+ />
524
+ </RNSVGGroup>
525
+ </RNSVGSvgView>
526
+ </View>
442
527
  </View>
443
528
  </View>
444
- </View>
445
- <View
446
- accessible={true}
447
- focusable={true}
448
- onClick={[Function]}
449
- onResponderGrant={[Function]}
450
- onResponderMove={[Function]}
451
- onResponderRelease={[Function]}
452
- onResponderTerminate={[Function]}
453
- onResponderTerminationRequest={[Function]}
454
- onStartShouldSetResponder={[Function]}
455
- style={
456
- Object {
457
- "backgroundColor": "#00000099",
458
- "borderRadius": 24,
459
- "opacity": 1,
460
- "position": "absolute",
461
- "right": 8,
462
- "top": 8,
463
- }
464
- }
465
- testID="remove-image-upload-preview"
466
- >
467
- <RNSVGSvgView
468
- align="xMidYMid"
469
- bbHeight={24}
470
- bbWidth={24}
471
- focusable={false}
472
- height={24}
473
- meetOrSlice={0}
474
- minX={0}
475
- minY={0}
476
- pathFill="#FFFFFF"
529
+ <View
530
+ accessible={true}
531
+ focusable={true}
532
+ onClick={[Function]}
533
+ onResponderGrant={[Function]}
534
+ onResponderMove={[Function]}
535
+ onResponderRelease={[Function]}
536
+ onResponderTerminate={[Function]}
537
+ onResponderTerminationRequest={[Function]}
538
+ onStartShouldSetResponder={[Function]}
477
539
  style={
478
- Array [
479
- Object {
480
- "backgroundColor": "transparent",
481
- "borderWidth": 0,
482
- },
483
- Object {
484
- "flex": 0,
485
- "height": 24,
486
- "width": 24,
487
- },
488
- ]
540
+ Object {
541
+ "backgroundColor": "#000000CC",
542
+ "borderRadius": 24,
543
+ "opacity": 1,
544
+ "position": "absolute",
545
+ "right": 8,
546
+ "top": 8,
547
+ }
489
548
  }
490
- vbHeight={24}
491
- vbWidth={24}
492
- width={24}
549
+ testID="remove-image-upload-preview"
493
550
  >
494
- <RNSVGGroup>
495
- <RNSVGPath
496
- clipRule={0}
497
- d="M7.05 7.05a1 1 0 000 1.414L10.586 12 7.05 15.536a1 1 0 101.414 1.414L12 13.414l3.536 3.536a1 1 0 001.414-1.414L13.414 12l3.536-3.536a1 1 0 00-1.414-1.414L12 10.586 8.464 7.05a1 1 0 00-1.414 0z"
498
- fill={4294967295}
499
- fillRule={0}
500
- propList={
501
- Array [
502
- "fill",
503
- "fillRule",
504
- ]
505
- }
506
- />
507
- </RNSVGGroup>
508
- </RNSVGSvgView>
551
+ <RNSVGSvgView
552
+ align="xMidYMid"
553
+ bbHeight={24}
554
+ bbWidth={24}
555
+ focusable={false}
556
+ height={24}
557
+ meetOrSlice={0}
558
+ minX={0}
559
+ minY={0}
560
+ pathFill="#FFFFFF"
561
+ style={
562
+ Array [
563
+ Object {
564
+ "backgroundColor": "transparent",
565
+ "borderWidth": 0,
566
+ },
567
+ Object {
568
+ "flex": 0,
569
+ "height": 24,
570
+ "width": 24,
571
+ },
572
+ ]
573
+ }
574
+ vbHeight={24}
575
+ vbWidth={24}
576
+ width={24}
577
+ >
578
+ <RNSVGGroup>
579
+ <RNSVGPath
580
+ clipRule={0}
581
+ d="M7.05 7.05a1 1 0 000 1.414L10.586 12 7.05 15.536a1 1 0 101.414 1.414L12 13.414l3.536 3.536a1 1 0 001.414-1.414L13.414 12l3.536-3.536a1 1 0 00-1.414-1.414L12 10.586 8.464 7.05a1 1 0 00-1.414 0z"
582
+ fill={4294967295}
583
+ fillRule={0}
584
+ propList={
585
+ Array [
586
+ "fill",
587
+ "fillRule",
588
+ ]
589
+ }
590
+ />
591
+ </RNSVGGroup>
592
+ </RNSVGSvgView>
593
+ </View>
509
594
  </View>
510
595
  </View>
511
596
  </View>
512
- </View>
597
+ </RCTScrollView>
513
598
  `;
514
599
 
515
600
  exports[`ImageUploadPreview should render ImageUploadPreview with all failed images 1`] = `
516
- <View>
601
+ <RCTScrollView
602
+ data={
603
+ Array [
604
+ Object {
605
+ "file": Object {
606
+ "uri": "http://www.jackblack.com/tenac_iousd.bmp",
607
+ },
608
+ "id": "image-upload-preview-1",
609
+ "state": "upload_failed",
610
+ },
611
+ Object {
612
+ "file": Object {
613
+ "uri": "http://www.jackblack.com/tenac_iousd.bmp",
614
+ },
615
+ "id": "image-upload-preview-2",
616
+ "state": "upload_failed",
617
+ },
618
+ Object {
619
+ "file": Object {
620
+ "uri": "http://www.jackblack.com/tenac_iousd.bmp",
621
+ },
622
+ "id": "image-upload-preview-3",
623
+ "state": "upload_failed",
624
+ },
625
+ ]
626
+ }
627
+ disableVirtualization={false}
628
+ getItem={[Function]}
629
+ getItemCount={[Function]}
630
+ getItemLayout={[Function]}
631
+ horizontal={true}
632
+ initialNumToRender={10}
633
+ keyExtractor={[Function]}
634
+ maxToRenderPerBatch={10}
635
+ onContentSizeChange={[Function]}
636
+ onEndReachedThreshold={2}
637
+ onLayout={[Function]}
638
+ onMomentumScrollEnd={[Function]}
639
+ onScroll={[Function]}
640
+ onScrollBeginDrag={[Function]}
641
+ onScrollEndDrag={[Function]}
642
+ removeClippedSubviews={false}
643
+ renderItem={[Function]}
644
+ scrollEventThrottle={50}
645
+ stickyHeaderIndices={Array []}
646
+ style={
647
+ Array [
648
+ Object {
649
+ "paddingBottom": 12,
650
+ },
651
+ Object {},
652
+ ]
653
+ }
654
+ updateCellsBatchingPeriod={50}
655
+ viewabilityConfigCallbackPairs={Array []}
656
+ windowSize={21}
657
+ >
517
658
  <View>
518
659
  <View
519
660
  style={
520
661
  Array [
521
662
  Object {
522
663
  "flexDirection": "row",
523
- "height": 100,
524
- "marginLeft": 8,
525
664
  },
526
- Object {},
527
- Object {},
665
+ null,
528
666
  ]
529
667
  }
530
668
  >
@@ -532,217 +670,226 @@ exports[`ImageUploadPreview should render ImageUploadPreview with all failed ima
532
670
  style={
533
671
  Array [
534
672
  Object {
535
- "overflow": "hidden",
536
- },
537
- Object {
538
- "borderRadius": 10,
673
+ "flexDirection": "row",
539
674
  "height": 100,
540
- "width": 100,
675
+ "marginLeft": 8,
541
676
  },
677
+ Object {},
678
+ Object {},
542
679
  ]
543
680
  }
544
- testID="active-upload-progress-indicator"
545
681
  >
546
- <Image
547
- resizeMode="cover"
548
- source={
549
- Object {
550
- "uri": "http://www.jackblack.com/tenac_iousd.bmp",
551
- }
552
- }
553
- style={
554
- Array [
555
- Object {
556
- "borderRadius": 10,
557
- "height": 100,
558
- "width": 100,
559
- },
560
- Object {},
561
- ]
562
- }
563
- />
564
- <View
565
- style={
566
- Array [
567
- Object {
568
- "alignItems": "center",
569
- "height": "100%",
570
- "justifyContent": "center",
571
- "opacity": 0,
572
- "position": "absolute",
573
- "width": "100%",
574
- },
575
- Object {
576
- "backgroundColor": "#00000033",
577
- },
578
- Object {},
579
- ]
580
- }
581
- />
582
682
  <View
583
683
  style={
584
684
  Array [
585
685
  Object {
586
- "alignItems": "center",
587
- "height": "100%",
588
- "justifyContent": "center",
589
- "position": "absolute",
590
- "width": "100%",
686
+ "overflow": "hidden",
591
687
  },
592
688
  Object {
593
- "backgroundColor": "#00000033",
689
+ "borderRadius": 10,
690
+ "height": 100,
691
+ "width": 100,
594
692
  },
595
- Object {},
596
693
  ]
597
694
  }
695
+ testID="active-upload-progress-indicator"
598
696
  >
599
- <View
600
- accessible={true}
601
- focusable={true}
602
- onClick={[Function]}
603
- onResponderGrant={[Function]}
604
- onResponderMove={[Function]}
605
- onResponderRelease={[Function]}
606
- onResponderTerminate={[Function]}
607
- onResponderTerminationRequest={[Function]}
608
- onStartShouldSetResponder={[Function]}
609
- style={
697
+ <Image
698
+ resizeMode="cover"
699
+ source={
610
700
  Object {
611
- "alignItems": "center",
612
- "bottom": 0,
613
- "justifyContent": "center",
614
- "left": 0,
615
- "opacity": 1,
616
- "position": "absolute",
617
- "right": 0,
618
- "top": 0,
701
+ "uri": "http://www.jackblack.com/tenac_iousd.bmp",
619
702
  }
620
703
  }
704
+ style={
705
+ Array [
706
+ Object {
707
+ "borderRadius": 10,
708
+ "height": 100,
709
+ "width": 100,
710
+ },
711
+ Object {},
712
+ ]
713
+ }
714
+ />
715
+ <View
716
+ style={
717
+ Array [
718
+ Object {
719
+ "alignItems": "center",
720
+ "height": "100%",
721
+ "justifyContent": "center",
722
+ "opacity": 0,
723
+ "position": "absolute",
724
+ "width": "100%",
725
+ },
726
+ Object {
727
+ "backgroundColor": "#000000CC",
728
+ },
729
+ Object {},
730
+ ]
731
+ }
732
+ />
733
+ <View
734
+ style={
735
+ Array [
736
+ Object {
737
+ "alignItems": "center",
738
+ "height": "100%",
739
+ "justifyContent": "center",
740
+ "position": "absolute",
741
+ "width": "100%",
742
+ },
743
+ Object {
744
+ "backgroundColor": "#000000CC",
745
+ },
746
+ Object {},
747
+ ]
748
+ }
621
749
  >
622
- <RNSVGSvgView
623
- align="xMidYMid"
624
- bbHeight={18}
625
- bbWidth={18}
626
- focusable={false}
627
- height={18}
628
- meetOrSlice={0}
629
- minX={0}
630
- minY={0}
631
- pathFill="#F2F2F2"
750
+ <View
751
+ accessible={true}
752
+ focusable={true}
753
+ onClick={[Function]}
754
+ onResponderGrant={[Function]}
755
+ onResponderMove={[Function]}
756
+ onResponderRelease={[Function]}
757
+ onResponderTerminate={[Function]}
758
+ onResponderTerminationRequest={[Function]}
759
+ onStartShouldSetResponder={[Function]}
632
760
  style={
633
- Array [
634
- Object {
635
- "backgroundColor": "transparent",
636
- "borderWidth": 0,
637
- },
638
- Object {
639
- "flex": 0,
640
- "height": 18,
641
- "width": 18,
642
- },
643
- ]
761
+ Object {
762
+ "alignItems": "center",
763
+ "bottom": 0,
764
+ "justifyContent": "center",
765
+ "left": 0,
766
+ "opacity": 1,
767
+ "position": "absolute",
768
+ "right": 0,
769
+ "top": 0,
770
+ }
644
771
  }
645
- testID="retry-upload-progress-indicator"
646
- vbHeight={24}
647
- vbWidth={24}
648
- width={18}
649
772
  >
650
- <RNSVGGroup>
651
- <RNSVGPath
652
- clipRule={0}
653
- d="M12.868 4.221a8 8 0 102.834 14.251 1 1 0 00-1.175-1.618A6 6 0 1112.4 6.166c1.31.314 2.52.803 3.31 2.12.154.254.266.485.348.708h-1.152a1 1 0 00-.81 1.585l2.375 3.291a1 1 0 001.621 0l2.376-3.291a1 1 0 00-.811-1.585h-1.509c-.128-.639-.377-1.24-.867-1.947a8 8 0 00-4.414-2.826z"
654
- fill={4294111986}
655
- fillRule={0}
656
- propList={
657
- Array [
658
- "fill",
659
- "fillRule",
660
- ]
661
- }
662
- />
663
- </RNSVGGroup>
664
- </RNSVGSvgView>
773
+ <RNSVGSvgView
774
+ align="xMidYMid"
775
+ bbHeight={18}
776
+ bbWidth={18}
777
+ focusable={false}
778
+ height={18}
779
+ meetOrSlice={0}
780
+ minX={0}
781
+ minY={0}
782
+ pathFill="#F2F2F2"
783
+ style={
784
+ Array [
785
+ Object {
786
+ "backgroundColor": "transparent",
787
+ "borderWidth": 0,
788
+ },
789
+ Object {
790
+ "flex": 0,
791
+ "height": 18,
792
+ "width": 18,
793
+ },
794
+ ]
795
+ }
796
+ testID="retry-upload-progress-indicator"
797
+ vbHeight={24}
798
+ vbWidth={24}
799
+ width={18}
800
+ >
801
+ <RNSVGGroup>
802
+ <RNSVGPath
803
+ clipRule={0}
804
+ d="M12.868 4.221a8 8 0 102.834 14.251 1 1 0 00-1.175-1.618A6 6 0 1112.4 6.166c1.31.314 2.52.803 3.31 2.12.154.254.266.485.348.708h-1.152a1 1 0 00-.81 1.585l2.375 3.291a1 1 0 001.621 0l2.376-3.291a1 1 0 00-.811-1.585h-1.509c-.128-.639-.377-1.24-.867-1.947a8 8 0 00-4.414-2.826z"
805
+ fill={4294111986}
806
+ fillRule={0}
807
+ propList={
808
+ Array [
809
+ "fill",
810
+ "fillRule",
811
+ ]
812
+ }
813
+ />
814
+ </RNSVGGroup>
815
+ </RNSVGSvgView>
816
+ </View>
665
817
  </View>
666
818
  </View>
667
- </View>
668
- <View
669
- accessible={true}
670
- focusable={true}
671
- onClick={[Function]}
672
- onResponderGrant={[Function]}
673
- onResponderMove={[Function]}
674
- onResponderRelease={[Function]}
675
- onResponderTerminate={[Function]}
676
- onResponderTerminationRequest={[Function]}
677
- onStartShouldSetResponder={[Function]}
678
- style={
679
- Object {
680
- "backgroundColor": "#00000099",
681
- "borderRadius": 24,
682
- "opacity": 1,
683
- "position": "absolute",
684
- "right": 8,
685
- "top": 8,
686
- }
687
- }
688
- testID="remove-image-upload-preview"
689
- >
690
- <RNSVGSvgView
691
- align="xMidYMid"
692
- bbHeight={24}
693
- bbWidth={24}
694
- focusable={false}
695
- height={24}
696
- meetOrSlice={0}
697
- minX={0}
698
- minY={0}
699
- pathFill="#FFFFFF"
819
+ <View
820
+ accessible={true}
821
+ focusable={true}
822
+ onClick={[Function]}
823
+ onResponderGrant={[Function]}
824
+ onResponderMove={[Function]}
825
+ onResponderRelease={[Function]}
826
+ onResponderTerminate={[Function]}
827
+ onResponderTerminationRequest={[Function]}
828
+ onStartShouldSetResponder={[Function]}
700
829
  style={
701
- Array [
702
- Object {
703
- "backgroundColor": "transparent",
704
- "borderWidth": 0,
705
- },
706
- Object {
707
- "flex": 0,
708
- "height": 24,
709
- "width": 24,
710
- },
711
- ]
830
+ Object {
831
+ "backgroundColor": "#000000CC",
832
+ "borderRadius": 24,
833
+ "opacity": 1,
834
+ "position": "absolute",
835
+ "right": 8,
836
+ "top": 8,
837
+ }
712
838
  }
713
- vbHeight={24}
714
- vbWidth={24}
715
- width={24}
839
+ testID="remove-image-upload-preview"
716
840
  >
717
- <RNSVGGroup>
718
- <RNSVGPath
719
- clipRule={0}
720
- d="M7.05 7.05a1 1 0 000 1.414L10.586 12 7.05 15.536a1 1 0 101.414 1.414L12 13.414l3.536 3.536a1 1 0 001.414-1.414L13.414 12l3.536-3.536a1 1 0 00-1.414-1.414L12 10.586 8.464 7.05a1 1 0 00-1.414 0z"
721
- fill={4294967295}
722
- fillRule={0}
723
- propList={
724
- Array [
725
- "fill",
726
- "fillRule",
727
- ]
728
- }
729
- />
730
- </RNSVGGroup>
731
- </RNSVGSvgView>
841
+ <RNSVGSvgView
842
+ align="xMidYMid"
843
+ bbHeight={24}
844
+ bbWidth={24}
845
+ focusable={false}
846
+ height={24}
847
+ meetOrSlice={0}
848
+ minX={0}
849
+ minY={0}
850
+ pathFill="#FFFFFF"
851
+ style={
852
+ Array [
853
+ Object {
854
+ "backgroundColor": "transparent",
855
+ "borderWidth": 0,
856
+ },
857
+ Object {
858
+ "flex": 0,
859
+ "height": 24,
860
+ "width": 24,
861
+ },
862
+ ]
863
+ }
864
+ vbHeight={24}
865
+ vbWidth={24}
866
+ width={24}
867
+ >
868
+ <RNSVGGroup>
869
+ <RNSVGPath
870
+ clipRule={0}
871
+ d="M7.05 7.05a1 1 0 000 1.414L10.586 12 7.05 15.536a1 1 0 101.414 1.414L12 13.414l3.536 3.536a1 1 0 001.414-1.414L13.414 12l3.536-3.536a1 1 0 00-1.414-1.414L12 10.586 8.464 7.05a1 1 0 00-1.414 0z"
872
+ fill={4294967295}
873
+ fillRule={0}
874
+ propList={
875
+ Array [
876
+ "fill",
877
+ "fillRule",
878
+ ]
879
+ }
880
+ />
881
+ </RNSVGGroup>
882
+ </RNSVGSvgView>
883
+ </View>
732
884
  </View>
733
885
  </View>
734
- </View>
735
- <View>
736
886
  <View
737
887
  style={
738
888
  Array [
739
889
  Object {
740
890
  "flexDirection": "row",
741
- "height": 100,
742
- "marginLeft": 8,
743
891
  },
744
- Object {},
745
- Object {},
892
+ null,
746
893
  ]
747
894
  }
748
895
  >
@@ -750,219 +897,226 @@ exports[`ImageUploadPreview should render ImageUploadPreview with all failed ima
750
897
  style={
751
898
  Array [
752
899
  Object {
753
- "overflow": "hidden",
754
- },
755
- Object {
756
- "borderRadius": 10,
900
+ "flexDirection": "row",
757
901
  "height": 100,
758
- "width": 100,
902
+ "marginLeft": 8,
759
903
  },
904
+ Object {},
905
+ Object {},
760
906
  ]
761
907
  }
762
- testID="active-upload-progress-indicator"
763
908
  >
764
- <Image
765
- resizeMode="cover"
766
- source={
767
- Object {
768
- "uri": "http://www.jackblack.com/tenac_iousd.bmp",
769
- }
770
- }
771
- style={
772
- Array [
773
- Object {
774
- "borderRadius": 10,
775
- "height": 100,
776
- "width": 100,
777
- },
778
- Object {},
779
- ]
780
- }
781
- />
782
- <View
783
- style={
784
- Array [
785
- Object {
786
- "alignItems": "center",
787
- "height": "100%",
788
- "justifyContent": "center",
789
- "opacity": 0,
790
- "position": "absolute",
791
- "width": "100%",
792
- },
793
- Object {
794
- "backgroundColor": "#00000033",
795
- },
796
- Object {},
797
- ]
798
- }
799
- />
800
909
  <View
801
910
  style={
802
911
  Array [
803
912
  Object {
804
- "alignItems": "center",
805
- "height": "100%",
806
- "justifyContent": "center",
807
- "position": "absolute",
808
- "width": "100%",
913
+ "overflow": "hidden",
809
914
  },
810
915
  Object {
811
- "backgroundColor": "#00000033",
916
+ "borderRadius": 10,
917
+ "height": 100,
918
+ "width": 100,
812
919
  },
813
- Object {},
814
920
  ]
815
921
  }
922
+ testID="active-upload-progress-indicator"
816
923
  >
817
- <View
818
- accessible={true}
819
- focusable={true}
820
- onClick={[Function]}
821
- onResponderGrant={[Function]}
822
- onResponderMove={[Function]}
823
- onResponderRelease={[Function]}
824
- onResponderTerminate={[Function]}
825
- onResponderTerminationRequest={[Function]}
826
- onStartShouldSetResponder={[Function]}
827
- style={
924
+ <Image
925
+ resizeMode="cover"
926
+ source={
828
927
  Object {
829
- "alignItems": "center",
830
- "bottom": 0,
831
- "justifyContent": "center",
832
- "left": 0,
833
- "opacity": 1,
834
- "position": "absolute",
835
- "right": 0,
836
- "top": 0,
928
+ "uri": "http://www.jackblack.com/tenac_iousd.bmp",
837
929
  }
838
930
  }
931
+ style={
932
+ Array [
933
+ Object {
934
+ "borderRadius": 10,
935
+ "height": 100,
936
+ "width": 100,
937
+ },
938
+ Object {},
939
+ ]
940
+ }
941
+ />
942
+ <View
943
+ style={
944
+ Array [
945
+ Object {
946
+ "alignItems": "center",
947
+ "height": "100%",
948
+ "justifyContent": "center",
949
+ "opacity": 0,
950
+ "position": "absolute",
951
+ "width": "100%",
952
+ },
953
+ Object {
954
+ "backgroundColor": "#000000CC",
955
+ },
956
+ Object {},
957
+ ]
958
+ }
959
+ />
960
+ <View
961
+ style={
962
+ Array [
963
+ Object {
964
+ "alignItems": "center",
965
+ "height": "100%",
966
+ "justifyContent": "center",
967
+ "position": "absolute",
968
+ "width": "100%",
969
+ },
970
+ Object {
971
+ "backgroundColor": "#000000CC",
972
+ },
973
+ Object {},
974
+ ]
975
+ }
839
976
  >
840
- <RNSVGSvgView
841
- align="xMidYMid"
842
- bbHeight={18}
843
- bbWidth={18}
844
- focusable={false}
845
- height={18}
846
- meetOrSlice={0}
847
- minX={0}
848
- minY={0}
849
- pathFill="#F2F2F2"
977
+ <View
978
+ accessible={true}
979
+ focusable={true}
980
+ onClick={[Function]}
981
+ onResponderGrant={[Function]}
982
+ onResponderMove={[Function]}
983
+ onResponderRelease={[Function]}
984
+ onResponderTerminate={[Function]}
985
+ onResponderTerminationRequest={[Function]}
986
+ onStartShouldSetResponder={[Function]}
850
987
  style={
851
- Array [
852
- Object {
853
- "backgroundColor": "transparent",
854
- "borderWidth": 0,
855
- },
856
- Object {
857
- "flex": 0,
858
- "height": 18,
859
- "width": 18,
860
- },
861
- ]
988
+ Object {
989
+ "alignItems": "center",
990
+ "bottom": 0,
991
+ "justifyContent": "center",
992
+ "left": 0,
993
+ "opacity": 1,
994
+ "position": "absolute",
995
+ "right": 0,
996
+ "top": 0,
997
+ }
862
998
  }
863
- testID="retry-upload-progress-indicator"
864
- vbHeight={24}
865
- vbWidth={24}
866
- width={18}
867
999
  >
868
- <RNSVGGroup>
869
- <RNSVGPath
870
- clipRule={0}
871
- d="M12.868 4.221a8 8 0 102.834 14.251 1 1 0 00-1.175-1.618A6 6 0 1112.4 6.166c1.31.314 2.52.803 3.31 2.12.154.254.266.485.348.708h-1.152a1 1 0 00-.81 1.585l2.375 3.291a1 1 0 001.621 0l2.376-3.291a1 1 0 00-.811-1.585h-1.509c-.128-.639-.377-1.24-.867-1.947a8 8 0 00-4.414-2.826z"
872
- fill={4294111986}
873
- fillRule={0}
874
- propList={
875
- Array [
876
- "fill",
877
- "fillRule",
878
- ]
879
- }
880
- />
881
- </RNSVGGroup>
882
- </RNSVGSvgView>
1000
+ <RNSVGSvgView
1001
+ align="xMidYMid"
1002
+ bbHeight={18}
1003
+ bbWidth={18}
1004
+ focusable={false}
1005
+ height={18}
1006
+ meetOrSlice={0}
1007
+ minX={0}
1008
+ minY={0}
1009
+ pathFill="#F2F2F2"
1010
+ style={
1011
+ Array [
1012
+ Object {
1013
+ "backgroundColor": "transparent",
1014
+ "borderWidth": 0,
1015
+ },
1016
+ Object {
1017
+ "flex": 0,
1018
+ "height": 18,
1019
+ "width": 18,
1020
+ },
1021
+ ]
1022
+ }
1023
+ testID="retry-upload-progress-indicator"
1024
+ vbHeight={24}
1025
+ vbWidth={24}
1026
+ width={18}
1027
+ >
1028
+ <RNSVGGroup>
1029
+ <RNSVGPath
1030
+ clipRule={0}
1031
+ d="M12.868 4.221a8 8 0 102.834 14.251 1 1 0 00-1.175-1.618A6 6 0 1112.4 6.166c1.31.314 2.52.803 3.31 2.12.154.254.266.485.348.708h-1.152a1 1 0 00-.81 1.585l2.375 3.291a1 1 0 001.621 0l2.376-3.291a1 1 0 00-.811-1.585h-1.509c-.128-.639-.377-1.24-.867-1.947a8 8 0 00-4.414-2.826z"
1032
+ fill={4294111986}
1033
+ fillRule={0}
1034
+ propList={
1035
+ Array [
1036
+ "fill",
1037
+ "fillRule",
1038
+ ]
1039
+ }
1040
+ />
1041
+ </RNSVGGroup>
1042
+ </RNSVGSvgView>
1043
+ </View>
883
1044
  </View>
884
1045
  </View>
885
- </View>
886
- <View
887
- accessible={true}
888
- focusable={true}
889
- onClick={[Function]}
890
- onResponderGrant={[Function]}
891
- onResponderMove={[Function]}
892
- onResponderRelease={[Function]}
893
- onResponderTerminate={[Function]}
894
- onResponderTerminationRequest={[Function]}
895
- onStartShouldSetResponder={[Function]}
896
- style={
897
- Object {
898
- "backgroundColor": "#00000099",
899
- "borderRadius": 24,
900
- "opacity": 1,
901
- "position": "absolute",
902
- "right": 8,
903
- "top": 8,
904
- }
905
- }
906
- testID="remove-image-upload-preview"
907
- >
908
- <RNSVGSvgView
909
- align="xMidYMid"
910
- bbHeight={24}
911
- bbWidth={24}
912
- focusable={false}
913
- height={24}
914
- meetOrSlice={0}
915
- minX={0}
916
- minY={0}
917
- pathFill="#FFFFFF"
1046
+ <View
1047
+ accessible={true}
1048
+ focusable={true}
1049
+ onClick={[Function]}
1050
+ onResponderGrant={[Function]}
1051
+ onResponderMove={[Function]}
1052
+ onResponderRelease={[Function]}
1053
+ onResponderTerminate={[Function]}
1054
+ onResponderTerminationRequest={[Function]}
1055
+ onStartShouldSetResponder={[Function]}
918
1056
  style={
919
- Array [
920
- Object {
921
- "backgroundColor": "transparent",
922
- "borderWidth": 0,
923
- },
924
- Object {
925
- "flex": 0,
926
- "height": 24,
927
- "width": 24,
928
- },
929
- ]
1057
+ Object {
1058
+ "backgroundColor": "#000000CC",
1059
+ "borderRadius": 24,
1060
+ "opacity": 1,
1061
+ "position": "absolute",
1062
+ "right": 8,
1063
+ "top": 8,
1064
+ }
930
1065
  }
931
- vbHeight={24}
932
- vbWidth={24}
933
- width={24}
1066
+ testID="remove-image-upload-preview"
934
1067
  >
935
- <RNSVGGroup>
936
- <RNSVGPath
937
- clipRule={0}
938
- d="M7.05 7.05a1 1 0 000 1.414L10.586 12 7.05 15.536a1 1 0 101.414 1.414L12 13.414l3.536 3.536a1 1 0 001.414-1.414L13.414 12l3.536-3.536a1 1 0 00-1.414-1.414L12 10.586 8.464 7.05a1 1 0 00-1.414 0z"
939
- fill={4294967295}
940
- fillRule={0}
941
- propList={
942
- Array [
943
- "fill",
944
- "fillRule",
945
- ]
946
- }
947
- />
948
- </RNSVGGroup>
949
- </RNSVGSvgView>
1068
+ <RNSVGSvgView
1069
+ align="xMidYMid"
1070
+ bbHeight={24}
1071
+ bbWidth={24}
1072
+ focusable={false}
1073
+ height={24}
1074
+ meetOrSlice={0}
1075
+ minX={0}
1076
+ minY={0}
1077
+ pathFill="#FFFFFF"
1078
+ style={
1079
+ Array [
1080
+ Object {
1081
+ "backgroundColor": "transparent",
1082
+ "borderWidth": 0,
1083
+ },
1084
+ Object {
1085
+ "flex": 0,
1086
+ "height": 24,
1087
+ "width": 24,
1088
+ },
1089
+ ]
1090
+ }
1091
+ vbHeight={24}
1092
+ vbWidth={24}
1093
+ width={24}
1094
+ >
1095
+ <RNSVGGroup>
1096
+ <RNSVGPath
1097
+ clipRule={0}
1098
+ d="M7.05 7.05a1 1 0 000 1.414L10.586 12 7.05 15.536a1 1 0 101.414 1.414L12 13.414l3.536 3.536a1 1 0 001.414-1.414L13.414 12l3.536-3.536a1 1 0 00-1.414-1.414L12 10.586 8.464 7.05a1 1 0 00-1.414 0z"
1099
+ fill={4294967295}
1100
+ fillRule={0}
1101
+ propList={
1102
+ Array [
1103
+ "fill",
1104
+ "fillRule",
1105
+ ]
1106
+ }
1107
+ />
1108
+ </RNSVGGroup>
1109
+ </RNSVGSvgView>
1110
+ </View>
950
1111
  </View>
951
1112
  </View>
952
- </View>
953
- <View>
954
1113
  <View
955
1114
  style={
956
1115
  Array [
957
1116
  Object {
958
1117
  "flexDirection": "row",
959
- "height": 100,
960
- "marginLeft": 8,
961
1118
  },
962
- Object {
963
- "marginRight": 8,
964
- },
965
- Object {},
1119
+ null,
966
1120
  ]
967
1121
  }
968
1122
  >
@@ -970,222 +1124,291 @@ exports[`ImageUploadPreview should render ImageUploadPreview with all failed ima
970
1124
  style={
971
1125
  Array [
972
1126
  Object {
973
- "overflow": "hidden",
1127
+ "flexDirection": "row",
1128
+ "height": 100,
1129
+ "marginLeft": 8,
974
1130
  },
975
1131
  Object {
976
- "borderRadius": 10,
977
- "height": 100,
978
- "width": 100,
1132
+ "marginRight": 8,
979
1133
  },
1134
+ Object {},
980
1135
  ]
981
1136
  }
982
- testID="active-upload-progress-indicator"
983
1137
  >
984
- <Image
985
- resizeMode="cover"
986
- source={
987
- Object {
988
- "uri": "http://www.jackblack.com/tenac_iousd.bmp",
989
- }
990
- }
991
- style={
992
- Array [
993
- Object {
994
- "borderRadius": 10,
995
- "height": 100,
996
- "width": 100,
997
- },
998
- Object {},
999
- ]
1000
- }
1001
- />
1002
- <View
1003
- style={
1004
- Array [
1005
- Object {
1006
- "alignItems": "center",
1007
- "height": "100%",
1008
- "justifyContent": "center",
1009
- "opacity": 0,
1010
- "position": "absolute",
1011
- "width": "100%",
1012
- },
1013
- Object {
1014
- "backgroundColor": "#00000033",
1015
- },
1016
- Object {},
1017
- ]
1018
- }
1019
- />
1020
1138
  <View
1021
1139
  style={
1022
1140
  Array [
1023
1141
  Object {
1024
- "alignItems": "center",
1025
- "height": "100%",
1026
- "justifyContent": "center",
1027
- "position": "absolute",
1028
- "width": "100%",
1142
+ "overflow": "hidden",
1029
1143
  },
1030
1144
  Object {
1031
- "backgroundColor": "#00000033",
1145
+ "borderRadius": 10,
1146
+ "height": 100,
1147
+ "width": 100,
1032
1148
  },
1033
- Object {},
1034
1149
  ]
1035
1150
  }
1151
+ testID="active-upload-progress-indicator"
1036
1152
  >
1037
- <View
1038
- accessible={true}
1039
- focusable={true}
1040
- onClick={[Function]}
1041
- onResponderGrant={[Function]}
1042
- onResponderMove={[Function]}
1043
- onResponderRelease={[Function]}
1044
- onResponderTerminate={[Function]}
1045
- onResponderTerminationRequest={[Function]}
1046
- onStartShouldSetResponder={[Function]}
1047
- style={
1153
+ <Image
1154
+ resizeMode="cover"
1155
+ source={
1048
1156
  Object {
1049
- "alignItems": "center",
1050
- "bottom": 0,
1051
- "justifyContent": "center",
1052
- "left": 0,
1053
- "opacity": 1,
1054
- "position": "absolute",
1055
- "right": 0,
1056
- "top": 0,
1157
+ "uri": "http://www.jackblack.com/tenac_iousd.bmp",
1057
1158
  }
1058
1159
  }
1160
+ style={
1161
+ Array [
1162
+ Object {
1163
+ "borderRadius": 10,
1164
+ "height": 100,
1165
+ "width": 100,
1166
+ },
1167
+ Object {},
1168
+ ]
1169
+ }
1170
+ />
1171
+ <View
1172
+ style={
1173
+ Array [
1174
+ Object {
1175
+ "alignItems": "center",
1176
+ "height": "100%",
1177
+ "justifyContent": "center",
1178
+ "opacity": 0,
1179
+ "position": "absolute",
1180
+ "width": "100%",
1181
+ },
1182
+ Object {
1183
+ "backgroundColor": "#000000CC",
1184
+ },
1185
+ Object {},
1186
+ ]
1187
+ }
1188
+ />
1189
+ <View
1190
+ style={
1191
+ Array [
1192
+ Object {
1193
+ "alignItems": "center",
1194
+ "height": "100%",
1195
+ "justifyContent": "center",
1196
+ "position": "absolute",
1197
+ "width": "100%",
1198
+ },
1199
+ Object {
1200
+ "backgroundColor": "#000000CC",
1201
+ },
1202
+ Object {},
1203
+ ]
1204
+ }
1059
1205
  >
1060
- <RNSVGSvgView
1061
- align="xMidYMid"
1062
- bbHeight={18}
1063
- bbWidth={18}
1064
- focusable={false}
1065
- height={18}
1066
- meetOrSlice={0}
1067
- minX={0}
1068
- minY={0}
1069
- pathFill="#F2F2F2"
1206
+ <View
1207
+ accessible={true}
1208
+ focusable={true}
1209
+ onClick={[Function]}
1210
+ onResponderGrant={[Function]}
1211
+ onResponderMove={[Function]}
1212
+ onResponderRelease={[Function]}
1213
+ onResponderTerminate={[Function]}
1214
+ onResponderTerminationRequest={[Function]}
1215
+ onStartShouldSetResponder={[Function]}
1070
1216
  style={
1071
- Array [
1072
- Object {
1073
- "backgroundColor": "transparent",
1074
- "borderWidth": 0,
1075
- },
1076
- Object {
1077
- "flex": 0,
1078
- "height": 18,
1079
- "width": 18,
1080
- },
1081
- ]
1217
+ Object {
1218
+ "alignItems": "center",
1219
+ "bottom": 0,
1220
+ "justifyContent": "center",
1221
+ "left": 0,
1222
+ "opacity": 1,
1223
+ "position": "absolute",
1224
+ "right": 0,
1225
+ "top": 0,
1226
+ }
1082
1227
  }
1083
- testID="retry-upload-progress-indicator"
1084
- vbHeight={24}
1085
- vbWidth={24}
1086
- width={18}
1087
1228
  >
1088
- <RNSVGGroup>
1089
- <RNSVGPath
1090
- clipRule={0}
1091
- d="M12.868 4.221a8 8 0 102.834 14.251 1 1 0 00-1.175-1.618A6 6 0 1112.4 6.166c1.31.314 2.52.803 3.31 2.12.154.254.266.485.348.708h-1.152a1 1 0 00-.81 1.585l2.375 3.291a1 1 0 001.621 0l2.376-3.291a1 1 0 00-.811-1.585h-1.509c-.128-.639-.377-1.24-.867-1.947a8 8 0 00-4.414-2.826z"
1092
- fill={4294111986}
1093
- fillRule={0}
1094
- propList={
1095
- Array [
1096
- "fill",
1097
- "fillRule",
1098
- ]
1099
- }
1100
- />
1101
- </RNSVGGroup>
1102
- </RNSVGSvgView>
1229
+ <RNSVGSvgView
1230
+ align="xMidYMid"
1231
+ bbHeight={18}
1232
+ bbWidth={18}
1233
+ focusable={false}
1234
+ height={18}
1235
+ meetOrSlice={0}
1236
+ minX={0}
1237
+ minY={0}
1238
+ pathFill="#F2F2F2"
1239
+ style={
1240
+ Array [
1241
+ Object {
1242
+ "backgroundColor": "transparent",
1243
+ "borderWidth": 0,
1244
+ },
1245
+ Object {
1246
+ "flex": 0,
1247
+ "height": 18,
1248
+ "width": 18,
1249
+ },
1250
+ ]
1251
+ }
1252
+ testID="retry-upload-progress-indicator"
1253
+ vbHeight={24}
1254
+ vbWidth={24}
1255
+ width={18}
1256
+ >
1257
+ <RNSVGGroup>
1258
+ <RNSVGPath
1259
+ clipRule={0}
1260
+ d="M12.868 4.221a8 8 0 102.834 14.251 1 1 0 00-1.175-1.618A6 6 0 1112.4 6.166c1.31.314 2.52.803 3.31 2.12.154.254.266.485.348.708h-1.152a1 1 0 00-.81 1.585l2.375 3.291a1 1 0 001.621 0l2.376-3.291a1 1 0 00-.811-1.585h-1.509c-.128-.639-.377-1.24-.867-1.947a8 8 0 00-4.414-2.826z"
1261
+ fill={4294111986}
1262
+ fillRule={0}
1263
+ propList={
1264
+ Array [
1265
+ "fill",
1266
+ "fillRule",
1267
+ ]
1268
+ }
1269
+ />
1270
+ </RNSVGGroup>
1271
+ </RNSVGSvgView>
1272
+ </View>
1103
1273
  </View>
1104
1274
  </View>
1105
- </View>
1106
- <View
1107
- accessible={true}
1108
- focusable={true}
1109
- onClick={[Function]}
1110
- onResponderGrant={[Function]}
1111
- onResponderMove={[Function]}
1112
- onResponderRelease={[Function]}
1113
- onResponderTerminate={[Function]}
1114
- onResponderTerminationRequest={[Function]}
1115
- onStartShouldSetResponder={[Function]}
1116
- style={
1117
- Object {
1118
- "backgroundColor": "#00000099",
1119
- "borderRadius": 24,
1120
- "opacity": 1,
1121
- "position": "absolute",
1122
- "right": 8,
1123
- "top": 8,
1124
- }
1125
- }
1126
- testID="remove-image-upload-preview"
1127
- >
1128
- <RNSVGSvgView
1129
- align="xMidYMid"
1130
- bbHeight={24}
1131
- bbWidth={24}
1132
- focusable={false}
1133
- height={24}
1134
- meetOrSlice={0}
1135
- minX={0}
1136
- minY={0}
1137
- pathFill="#FFFFFF"
1275
+ <View
1276
+ accessible={true}
1277
+ focusable={true}
1278
+ onClick={[Function]}
1279
+ onResponderGrant={[Function]}
1280
+ onResponderMove={[Function]}
1281
+ onResponderRelease={[Function]}
1282
+ onResponderTerminate={[Function]}
1283
+ onResponderTerminationRequest={[Function]}
1284
+ onStartShouldSetResponder={[Function]}
1138
1285
  style={
1139
- Array [
1140
- Object {
1141
- "backgroundColor": "transparent",
1142
- "borderWidth": 0,
1143
- },
1144
- Object {
1145
- "flex": 0,
1146
- "height": 24,
1147
- "width": 24,
1148
- },
1149
- ]
1286
+ Object {
1287
+ "backgroundColor": "#000000CC",
1288
+ "borderRadius": 24,
1289
+ "opacity": 1,
1290
+ "position": "absolute",
1291
+ "right": 8,
1292
+ "top": 8,
1293
+ }
1150
1294
  }
1151
- vbHeight={24}
1152
- vbWidth={24}
1153
- width={24}
1295
+ testID="remove-image-upload-preview"
1154
1296
  >
1155
- <RNSVGGroup>
1156
- <RNSVGPath
1157
- clipRule={0}
1158
- d="M7.05 7.05a1 1 0 000 1.414L10.586 12 7.05 15.536a1 1 0 101.414 1.414L12 13.414l3.536 3.536a1 1 0 001.414-1.414L13.414 12l3.536-3.536a1 1 0 00-1.414-1.414L12 10.586 8.464 7.05a1 1 0 00-1.414 0z"
1159
- fill={4294967295}
1160
- fillRule={0}
1161
- propList={
1162
- Array [
1163
- "fill",
1164
- "fillRule",
1165
- ]
1166
- }
1167
- />
1168
- </RNSVGGroup>
1169
- </RNSVGSvgView>
1297
+ <RNSVGSvgView
1298
+ align="xMidYMid"
1299
+ bbHeight={24}
1300
+ bbWidth={24}
1301
+ focusable={false}
1302
+ height={24}
1303
+ meetOrSlice={0}
1304
+ minX={0}
1305
+ minY={0}
1306
+ pathFill="#FFFFFF"
1307
+ style={
1308
+ Array [
1309
+ Object {
1310
+ "backgroundColor": "transparent",
1311
+ "borderWidth": 0,
1312
+ },
1313
+ Object {
1314
+ "flex": 0,
1315
+ "height": 24,
1316
+ "width": 24,
1317
+ },
1318
+ ]
1319
+ }
1320
+ vbHeight={24}
1321
+ vbWidth={24}
1322
+ width={24}
1323
+ >
1324
+ <RNSVGGroup>
1325
+ <RNSVGPath
1326
+ clipRule={0}
1327
+ d="M7.05 7.05a1 1 0 000 1.414L10.586 12 7.05 15.536a1 1 0 101.414 1.414L12 13.414l3.536 3.536a1 1 0 001.414-1.414L13.414 12l3.536-3.536a1 1 0 00-1.414-1.414L12 10.586 8.464 7.05a1 1 0 00-1.414 0z"
1328
+ fill={4294967295}
1329
+ fillRule={0}
1330
+ propList={
1331
+ Array [
1332
+ "fill",
1333
+ "fillRule",
1334
+ ]
1335
+ }
1336
+ />
1337
+ </RNSVGGroup>
1338
+ </RNSVGSvgView>
1339
+ </View>
1170
1340
  </View>
1171
1341
  </View>
1172
1342
  </View>
1173
- </View>
1343
+ </RCTScrollView>
1174
1344
  `;
1175
1345
 
1176
1346
  exports[`ImageUploadPreview should render ImageUploadPreview with all uploaded images 1`] = `
1177
- <View>
1347
+ <RCTScrollView
1348
+ data={
1349
+ Array [
1350
+ Object {
1351
+ "file": Object {
1352
+ "uri": "http://www.jackblack.com/tenac_iousd.bmp",
1353
+ },
1354
+ "id": "image-upload-preview-1",
1355
+ "state": "uploaded",
1356
+ },
1357
+ Object {
1358
+ "file": Object {
1359
+ "uri": "http://www.jackblack.com/tenac_iousd.bmp",
1360
+ },
1361
+ "id": "image-upload-preview-2",
1362
+ "state": "uploaded",
1363
+ },
1364
+ Object {
1365
+ "file": Object {
1366
+ "uri": "http://www.jackblack.com/tenac_iousd.bmp",
1367
+ },
1368
+ "id": "image-upload-preview-3",
1369
+ "state": "uploaded",
1370
+ },
1371
+ ]
1372
+ }
1373
+ disableVirtualization={false}
1374
+ getItem={[Function]}
1375
+ getItemCount={[Function]}
1376
+ getItemLayout={[Function]}
1377
+ horizontal={true}
1378
+ initialNumToRender={10}
1379
+ keyExtractor={[Function]}
1380
+ maxToRenderPerBatch={10}
1381
+ onContentSizeChange={[Function]}
1382
+ onEndReachedThreshold={2}
1383
+ onLayout={[Function]}
1384
+ onMomentumScrollEnd={[Function]}
1385
+ onScroll={[Function]}
1386
+ onScrollBeginDrag={[Function]}
1387
+ onScrollEndDrag={[Function]}
1388
+ removeClippedSubviews={false}
1389
+ renderItem={[Function]}
1390
+ scrollEventThrottle={50}
1391
+ stickyHeaderIndices={Array []}
1392
+ style={
1393
+ Array [
1394
+ Object {
1395
+ "paddingBottom": 12,
1396
+ },
1397
+ Object {},
1398
+ ]
1399
+ }
1400
+ updateCellsBatchingPeriod={50}
1401
+ viewabilityConfigCallbackPairs={Array []}
1402
+ windowSize={21}
1403
+ >
1178
1404
  <View>
1179
1405
  <View
1180
1406
  style={
1181
1407
  Array [
1182
1408
  Object {
1183
1409
  "flexDirection": "row",
1184
- "height": 100,
1185
- "marginLeft": 8,
1186
1410
  },
1187
- Object {},
1188
- Object {},
1411
+ null,
1189
1412
  ]
1190
1413
  }
1191
1414
  >
@@ -1193,114 +1416,123 @@ exports[`ImageUploadPreview should render ImageUploadPreview with all uploaded i
1193
1416
  style={
1194
1417
  Array [
1195
1418
  Object {
1196
- "overflow": "hidden",
1197
- },
1198
- Object {
1199
- "borderRadius": 10,
1419
+ "flexDirection": "row",
1200
1420
  "height": 100,
1201
- "width": 100,
1421
+ "marginLeft": 8,
1202
1422
  },
1423
+ Object {},
1424
+ Object {},
1203
1425
  ]
1204
1426
  }
1205
- testID="inactive-upload-progress-indicator"
1206
1427
  >
1207
- <Image
1208
- resizeMode="cover"
1209
- source={
1210
- Object {
1211
- "uri": "http://www.jackblack.com/tenac_iousd.bmp",
1212
- }
1213
- }
1428
+ <View
1214
1429
  style={
1215
1430
  Array [
1431
+ Object {
1432
+ "overflow": "hidden",
1433
+ },
1216
1434
  Object {
1217
1435
  "borderRadius": 10,
1218
1436
  "height": 100,
1219
1437
  "width": 100,
1220
1438
  },
1221
- Object {},
1222
1439
  ]
1223
1440
  }
1224
- />
1225
- </View>
1226
- <View
1227
- accessible={true}
1228
- focusable={true}
1229
- onClick={[Function]}
1230
- onResponderGrant={[Function]}
1231
- onResponderMove={[Function]}
1232
- onResponderRelease={[Function]}
1233
- onResponderTerminate={[Function]}
1234
- onResponderTerminationRequest={[Function]}
1235
- onStartShouldSetResponder={[Function]}
1236
- style={
1237
- Object {
1238
- "backgroundColor": "#00000099",
1239
- "borderRadius": 24,
1240
- "opacity": 1,
1241
- "position": "absolute",
1242
- "right": 8,
1243
- "top": 8,
1244
- }
1245
- }
1246
- testID="remove-image-upload-preview"
1247
- >
1248
- <RNSVGSvgView
1249
- align="xMidYMid"
1250
- bbHeight={24}
1251
- bbWidth={24}
1252
- focusable={false}
1253
- height={24}
1254
- meetOrSlice={0}
1255
- minX={0}
1256
- minY={0}
1257
- pathFill="#FFFFFF"
1258
- style={
1259
- Array [
1260
- Object {
1261
- "backgroundColor": "transparent",
1262
- "borderWidth": 0,
1263
- },
1441
+ testID="inactive-upload-progress-indicator"
1442
+ >
1443
+ <Image
1444
+ resizeMode="cover"
1445
+ source={
1264
1446
  Object {
1265
- "flex": 0,
1266
- "height": 24,
1267
- "width": 24,
1268
- },
1269
- ]
1447
+ "uri": "http://www.jackblack.com/tenac_iousd.bmp",
1448
+ }
1449
+ }
1450
+ style={
1451
+ Array [
1452
+ Object {
1453
+ "borderRadius": 10,
1454
+ "height": 100,
1455
+ "width": 100,
1456
+ },
1457
+ Object {},
1458
+ ]
1459
+ }
1460
+ />
1461
+ </View>
1462
+ <View
1463
+ accessible={true}
1464
+ focusable={true}
1465
+ onClick={[Function]}
1466
+ onResponderGrant={[Function]}
1467
+ onResponderMove={[Function]}
1468
+ onResponderRelease={[Function]}
1469
+ onResponderTerminate={[Function]}
1470
+ onResponderTerminationRequest={[Function]}
1471
+ onStartShouldSetResponder={[Function]}
1472
+ style={
1473
+ Object {
1474
+ "backgroundColor": "#000000CC",
1475
+ "borderRadius": 24,
1476
+ "opacity": 1,
1477
+ "position": "absolute",
1478
+ "right": 8,
1479
+ "top": 8,
1480
+ }
1270
1481
  }
1271
- vbHeight={24}
1272
- vbWidth={24}
1273
- width={24}
1482
+ testID="remove-image-upload-preview"
1274
1483
  >
1275
- <RNSVGGroup>
1276
- <RNSVGPath
1277
- clipRule={0}
1278
- d="M7.05 7.05a1 1 0 000 1.414L10.586 12 7.05 15.536a1 1 0 101.414 1.414L12 13.414l3.536 3.536a1 1 0 001.414-1.414L13.414 12l3.536-3.536a1 1 0 00-1.414-1.414L12 10.586 8.464 7.05a1 1 0 00-1.414 0z"
1279
- fill={4294967295}
1280
- fillRule={0}
1281
- propList={
1282
- Array [
1283
- "fill",
1284
- "fillRule",
1285
- ]
1286
- }
1287
- />
1288
- </RNSVGGroup>
1289
- </RNSVGSvgView>
1484
+ <RNSVGSvgView
1485
+ align="xMidYMid"
1486
+ bbHeight={24}
1487
+ bbWidth={24}
1488
+ focusable={false}
1489
+ height={24}
1490
+ meetOrSlice={0}
1491
+ minX={0}
1492
+ minY={0}
1493
+ pathFill="#FFFFFF"
1494
+ style={
1495
+ Array [
1496
+ Object {
1497
+ "backgroundColor": "transparent",
1498
+ "borderWidth": 0,
1499
+ },
1500
+ Object {
1501
+ "flex": 0,
1502
+ "height": 24,
1503
+ "width": 24,
1504
+ },
1505
+ ]
1506
+ }
1507
+ vbHeight={24}
1508
+ vbWidth={24}
1509
+ width={24}
1510
+ >
1511
+ <RNSVGGroup>
1512
+ <RNSVGPath
1513
+ clipRule={0}
1514
+ d="M7.05 7.05a1 1 0 000 1.414L10.586 12 7.05 15.536a1 1 0 101.414 1.414L12 13.414l3.536 3.536a1 1 0 001.414-1.414L13.414 12l3.536-3.536a1 1 0 00-1.414-1.414L12 10.586 8.464 7.05a1 1 0 00-1.414 0z"
1515
+ fill={4294967295}
1516
+ fillRule={0}
1517
+ propList={
1518
+ Array [
1519
+ "fill",
1520
+ "fillRule",
1521
+ ]
1522
+ }
1523
+ />
1524
+ </RNSVGGroup>
1525
+ </RNSVGSvgView>
1526
+ </View>
1290
1527
  </View>
1291
1528
  </View>
1292
- </View>
1293
- <View>
1294
1529
  <View
1295
1530
  style={
1296
1531
  Array [
1297
1532
  Object {
1298
1533
  "flexDirection": "row",
1299
- "height": 100,
1300
- "marginLeft": 8,
1301
1534
  },
1302
- Object {},
1303
- Object {},
1535
+ null,
1304
1536
  ]
1305
1537
  }
1306
1538
  >
@@ -1308,116 +1540,123 @@ exports[`ImageUploadPreview should render ImageUploadPreview with all uploaded i
1308
1540
  style={
1309
1541
  Array [
1310
1542
  Object {
1311
- "overflow": "hidden",
1312
- },
1313
- Object {
1314
- "borderRadius": 10,
1543
+ "flexDirection": "row",
1315
1544
  "height": 100,
1316
- "width": 100,
1545
+ "marginLeft": 8,
1317
1546
  },
1547
+ Object {},
1548
+ Object {},
1318
1549
  ]
1319
1550
  }
1320
- testID="inactive-upload-progress-indicator"
1321
1551
  >
1322
- <Image
1323
- resizeMode="cover"
1324
- source={
1325
- Object {
1326
- "uri": "http://www.jackblack.com/tenac_iousd.bmp",
1327
- }
1328
- }
1552
+ <View
1329
1553
  style={
1330
1554
  Array [
1555
+ Object {
1556
+ "overflow": "hidden",
1557
+ },
1331
1558
  Object {
1332
1559
  "borderRadius": 10,
1333
1560
  "height": 100,
1334
1561
  "width": 100,
1335
1562
  },
1336
- Object {},
1337
1563
  ]
1338
1564
  }
1339
- />
1340
- </View>
1341
- <View
1342
- accessible={true}
1343
- focusable={true}
1344
- onClick={[Function]}
1345
- onResponderGrant={[Function]}
1346
- onResponderMove={[Function]}
1347
- onResponderRelease={[Function]}
1348
- onResponderTerminate={[Function]}
1349
- onResponderTerminationRequest={[Function]}
1350
- onStartShouldSetResponder={[Function]}
1351
- style={
1352
- Object {
1353
- "backgroundColor": "#00000099",
1354
- "borderRadius": 24,
1355
- "opacity": 1,
1356
- "position": "absolute",
1357
- "right": 8,
1358
- "top": 8,
1359
- }
1360
- }
1361
- testID="remove-image-upload-preview"
1362
- >
1363
- <RNSVGSvgView
1364
- align="xMidYMid"
1365
- bbHeight={24}
1366
- bbWidth={24}
1367
- focusable={false}
1368
- height={24}
1369
- meetOrSlice={0}
1370
- minX={0}
1371
- minY={0}
1372
- pathFill="#FFFFFF"
1373
- style={
1374
- Array [
1375
- Object {
1376
- "backgroundColor": "transparent",
1377
- "borderWidth": 0,
1378
- },
1565
+ testID="inactive-upload-progress-indicator"
1566
+ >
1567
+ <Image
1568
+ resizeMode="cover"
1569
+ source={
1379
1570
  Object {
1380
- "flex": 0,
1381
- "height": 24,
1382
- "width": 24,
1383
- },
1384
- ]
1571
+ "uri": "http://www.jackblack.com/tenac_iousd.bmp",
1572
+ }
1573
+ }
1574
+ style={
1575
+ Array [
1576
+ Object {
1577
+ "borderRadius": 10,
1578
+ "height": 100,
1579
+ "width": 100,
1580
+ },
1581
+ Object {},
1582
+ ]
1583
+ }
1584
+ />
1585
+ </View>
1586
+ <View
1587
+ accessible={true}
1588
+ focusable={true}
1589
+ onClick={[Function]}
1590
+ onResponderGrant={[Function]}
1591
+ onResponderMove={[Function]}
1592
+ onResponderRelease={[Function]}
1593
+ onResponderTerminate={[Function]}
1594
+ onResponderTerminationRequest={[Function]}
1595
+ onStartShouldSetResponder={[Function]}
1596
+ style={
1597
+ Object {
1598
+ "backgroundColor": "#000000CC",
1599
+ "borderRadius": 24,
1600
+ "opacity": 1,
1601
+ "position": "absolute",
1602
+ "right": 8,
1603
+ "top": 8,
1604
+ }
1385
1605
  }
1386
- vbHeight={24}
1387
- vbWidth={24}
1388
- width={24}
1606
+ testID="remove-image-upload-preview"
1389
1607
  >
1390
- <RNSVGGroup>
1391
- <RNSVGPath
1392
- clipRule={0}
1393
- d="M7.05 7.05a1 1 0 000 1.414L10.586 12 7.05 15.536a1 1 0 101.414 1.414L12 13.414l3.536 3.536a1 1 0 001.414-1.414L13.414 12l3.536-3.536a1 1 0 00-1.414-1.414L12 10.586 8.464 7.05a1 1 0 00-1.414 0z"
1394
- fill={4294967295}
1395
- fillRule={0}
1396
- propList={
1397
- Array [
1398
- "fill",
1399
- "fillRule",
1400
- ]
1401
- }
1402
- />
1403
- </RNSVGGroup>
1404
- </RNSVGSvgView>
1608
+ <RNSVGSvgView
1609
+ align="xMidYMid"
1610
+ bbHeight={24}
1611
+ bbWidth={24}
1612
+ focusable={false}
1613
+ height={24}
1614
+ meetOrSlice={0}
1615
+ minX={0}
1616
+ minY={0}
1617
+ pathFill="#FFFFFF"
1618
+ style={
1619
+ Array [
1620
+ Object {
1621
+ "backgroundColor": "transparent",
1622
+ "borderWidth": 0,
1623
+ },
1624
+ Object {
1625
+ "flex": 0,
1626
+ "height": 24,
1627
+ "width": 24,
1628
+ },
1629
+ ]
1630
+ }
1631
+ vbHeight={24}
1632
+ vbWidth={24}
1633
+ width={24}
1634
+ >
1635
+ <RNSVGGroup>
1636
+ <RNSVGPath
1637
+ clipRule={0}
1638
+ d="M7.05 7.05a1 1 0 000 1.414L10.586 12 7.05 15.536a1 1 0 101.414 1.414L12 13.414l3.536 3.536a1 1 0 001.414-1.414L13.414 12l3.536-3.536a1 1 0 00-1.414-1.414L12 10.586 8.464 7.05a1 1 0 00-1.414 0z"
1639
+ fill={4294967295}
1640
+ fillRule={0}
1641
+ propList={
1642
+ Array [
1643
+ "fill",
1644
+ "fillRule",
1645
+ ]
1646
+ }
1647
+ />
1648
+ </RNSVGGroup>
1649
+ </RNSVGSvgView>
1650
+ </View>
1405
1651
  </View>
1406
1652
  </View>
1407
- </View>
1408
- <View>
1409
1653
  <View
1410
1654
  style={
1411
1655
  Array [
1412
1656
  Object {
1413
1657
  "flexDirection": "row",
1414
- "height": 100,
1415
- "marginLeft": 8,
1416
- },
1417
- Object {
1418
- "marginRight": 8,
1419
1658
  },
1420
- Object {},
1659
+ null,
1421
1660
  ]
1422
1661
  }
1423
1662
  >
@@ -1425,119 +1664,188 @@ exports[`ImageUploadPreview should render ImageUploadPreview with all uploaded i
1425
1664
  style={
1426
1665
  Array [
1427
1666
  Object {
1428
- "overflow": "hidden",
1667
+ "flexDirection": "row",
1668
+ "height": 100,
1669
+ "marginLeft": 8,
1429
1670
  },
1430
1671
  Object {
1431
- "borderRadius": 10,
1432
- "height": 100,
1433
- "width": 100,
1672
+ "marginRight": 8,
1434
1673
  },
1674
+ Object {},
1435
1675
  ]
1436
1676
  }
1437
- testID="inactive-upload-progress-indicator"
1438
1677
  >
1439
- <Image
1440
- resizeMode="cover"
1441
- source={
1442
- Object {
1443
- "uri": "http://www.jackblack.com/tenac_iousd.bmp",
1444
- }
1445
- }
1678
+ <View
1446
1679
  style={
1447
1680
  Array [
1681
+ Object {
1682
+ "overflow": "hidden",
1683
+ },
1448
1684
  Object {
1449
1685
  "borderRadius": 10,
1450
1686
  "height": 100,
1451
1687
  "width": 100,
1452
1688
  },
1453
- Object {},
1454
1689
  ]
1455
1690
  }
1456
- />
1457
- </View>
1458
- <View
1459
- accessible={true}
1460
- focusable={true}
1461
- onClick={[Function]}
1462
- onResponderGrant={[Function]}
1463
- onResponderMove={[Function]}
1464
- onResponderRelease={[Function]}
1465
- onResponderTerminate={[Function]}
1466
- onResponderTerminationRequest={[Function]}
1467
- onStartShouldSetResponder={[Function]}
1468
- style={
1469
- Object {
1470
- "backgroundColor": "#00000099",
1471
- "borderRadius": 24,
1472
- "opacity": 1,
1473
- "position": "absolute",
1474
- "right": 8,
1475
- "top": 8,
1476
- }
1477
- }
1478
- testID="remove-image-upload-preview"
1479
- >
1480
- <RNSVGSvgView
1481
- align="xMidYMid"
1482
- bbHeight={24}
1483
- bbWidth={24}
1484
- focusable={false}
1485
- height={24}
1486
- meetOrSlice={0}
1487
- minX={0}
1488
- minY={0}
1489
- pathFill="#FFFFFF"
1490
- style={
1491
- Array [
1492
- Object {
1493
- "backgroundColor": "transparent",
1494
- "borderWidth": 0,
1495
- },
1691
+ testID="inactive-upload-progress-indicator"
1692
+ >
1693
+ <Image
1694
+ resizeMode="cover"
1695
+ source={
1496
1696
  Object {
1497
- "flex": 0,
1498
- "height": 24,
1499
- "width": 24,
1500
- },
1501
- ]
1697
+ "uri": "http://www.jackblack.com/tenac_iousd.bmp",
1698
+ }
1699
+ }
1700
+ style={
1701
+ Array [
1702
+ Object {
1703
+ "borderRadius": 10,
1704
+ "height": 100,
1705
+ "width": 100,
1706
+ },
1707
+ Object {},
1708
+ ]
1709
+ }
1710
+ />
1711
+ </View>
1712
+ <View
1713
+ accessible={true}
1714
+ focusable={true}
1715
+ onClick={[Function]}
1716
+ onResponderGrant={[Function]}
1717
+ onResponderMove={[Function]}
1718
+ onResponderRelease={[Function]}
1719
+ onResponderTerminate={[Function]}
1720
+ onResponderTerminationRequest={[Function]}
1721
+ onStartShouldSetResponder={[Function]}
1722
+ style={
1723
+ Object {
1724
+ "backgroundColor": "#000000CC",
1725
+ "borderRadius": 24,
1726
+ "opacity": 1,
1727
+ "position": "absolute",
1728
+ "right": 8,
1729
+ "top": 8,
1730
+ }
1502
1731
  }
1503
- vbHeight={24}
1504
- vbWidth={24}
1505
- width={24}
1732
+ testID="remove-image-upload-preview"
1506
1733
  >
1507
- <RNSVGGroup>
1508
- <RNSVGPath
1509
- clipRule={0}
1510
- d="M7.05 7.05a1 1 0 000 1.414L10.586 12 7.05 15.536a1 1 0 101.414 1.414L12 13.414l3.536 3.536a1 1 0 001.414-1.414L13.414 12l3.536-3.536a1 1 0 00-1.414-1.414L12 10.586 8.464 7.05a1 1 0 00-1.414 0z"
1511
- fill={4294967295}
1512
- fillRule={0}
1513
- propList={
1514
- Array [
1515
- "fill",
1516
- "fillRule",
1517
- ]
1518
- }
1519
- />
1520
- </RNSVGGroup>
1521
- </RNSVGSvgView>
1734
+ <RNSVGSvgView
1735
+ align="xMidYMid"
1736
+ bbHeight={24}
1737
+ bbWidth={24}
1738
+ focusable={false}
1739
+ height={24}
1740
+ meetOrSlice={0}
1741
+ minX={0}
1742
+ minY={0}
1743
+ pathFill="#FFFFFF"
1744
+ style={
1745
+ Array [
1746
+ Object {
1747
+ "backgroundColor": "transparent",
1748
+ "borderWidth": 0,
1749
+ },
1750
+ Object {
1751
+ "flex": 0,
1752
+ "height": 24,
1753
+ "width": 24,
1754
+ },
1755
+ ]
1756
+ }
1757
+ vbHeight={24}
1758
+ vbWidth={24}
1759
+ width={24}
1760
+ >
1761
+ <RNSVGGroup>
1762
+ <RNSVGPath
1763
+ clipRule={0}
1764
+ d="M7.05 7.05a1 1 0 000 1.414L10.586 12 7.05 15.536a1 1 0 101.414 1.414L12 13.414l3.536 3.536a1 1 0 001.414-1.414L13.414 12l3.536-3.536a1 1 0 00-1.414-1.414L12 10.586 8.464 7.05a1 1 0 00-1.414 0z"
1765
+ fill={4294967295}
1766
+ fillRule={0}
1767
+ propList={
1768
+ Array [
1769
+ "fill",
1770
+ "fillRule",
1771
+ ]
1772
+ }
1773
+ />
1774
+ </RNSVGGroup>
1775
+ </RNSVGSvgView>
1776
+ </View>
1522
1777
  </View>
1523
1778
  </View>
1524
1779
  </View>
1525
- </View>
1780
+ </RCTScrollView>
1526
1781
  `;
1527
1782
 
1528
1783
  exports[`ImageUploadPreview should render ImageUploadPreview with all uploading images 1`] = `
1529
- <View>
1784
+ <RCTScrollView
1785
+ data={
1786
+ Array [
1787
+ Object {
1788
+ "file": Object {
1789
+ "uri": "http://www.jackblack.com/tenac_iousd.bmp",
1790
+ },
1791
+ "id": "image-upload-preview-1",
1792
+ "state": "uploading",
1793
+ },
1794
+ Object {
1795
+ "file": Object {
1796
+ "uri": "http://www.jackblack.com/tenac_iousd.bmp",
1797
+ },
1798
+ "id": "image-upload-preview-2",
1799
+ "state": "uploading",
1800
+ },
1801
+ Object {
1802
+ "file": Object {
1803
+ "uri": "http://www.jackblack.com/tenac_iousd.bmp",
1804
+ },
1805
+ "id": "image-upload-preview-3",
1806
+ "state": "uploading",
1807
+ },
1808
+ ]
1809
+ }
1810
+ disableVirtualization={false}
1811
+ getItem={[Function]}
1812
+ getItemCount={[Function]}
1813
+ getItemLayout={[Function]}
1814
+ horizontal={true}
1815
+ initialNumToRender={10}
1816
+ keyExtractor={[Function]}
1817
+ maxToRenderPerBatch={10}
1818
+ onContentSizeChange={[Function]}
1819
+ onEndReachedThreshold={2}
1820
+ onLayout={[Function]}
1821
+ onMomentumScrollEnd={[Function]}
1822
+ onScroll={[Function]}
1823
+ onScrollBeginDrag={[Function]}
1824
+ onScrollEndDrag={[Function]}
1825
+ removeClippedSubviews={false}
1826
+ renderItem={[Function]}
1827
+ scrollEventThrottle={50}
1828
+ stickyHeaderIndices={Array []}
1829
+ style={
1830
+ Array [
1831
+ Object {
1832
+ "paddingBottom": 12,
1833
+ },
1834
+ Object {},
1835
+ ]
1836
+ }
1837
+ updateCellsBatchingPeriod={50}
1838
+ viewabilityConfigCallbackPairs={Array []}
1839
+ windowSize={21}
1840
+ >
1530
1841
  <View>
1531
1842
  <View
1532
1843
  style={
1533
1844
  Array [
1534
1845
  Object {
1535
1846
  "flexDirection": "row",
1536
- "height": 100,
1537
- "marginLeft": 8,
1538
1847
  },
1539
- Object {},
1540
- Object {},
1848
+ null,
1541
1849
  ]
1542
1850
  }
1543
1851
  >
@@ -1545,171 +1853,180 @@ exports[`ImageUploadPreview should render ImageUploadPreview with all uploading
1545
1853
  style={
1546
1854
  Array [
1547
1855
  Object {
1548
- "overflow": "hidden",
1549
- },
1550
- Object {
1551
- "borderRadius": 10,
1856
+ "flexDirection": "row",
1552
1857
  "height": 100,
1553
- "width": 100,
1858
+ "marginLeft": 8,
1554
1859
  },
1860
+ Object {},
1861
+ Object {},
1555
1862
  ]
1556
1863
  }
1557
- testID="active-upload-progress-indicator"
1558
1864
  >
1559
- <Image
1560
- resizeMode="cover"
1561
- source={
1562
- Object {
1563
- "uri": "http://www.jackblack.com/tenac_iousd.bmp",
1564
- }
1565
- }
1566
- style={
1567
- Array [
1568
- Object {
1569
- "borderRadius": 10,
1570
- "height": 100,
1571
- "width": 100,
1572
- },
1573
- Object {},
1574
- ]
1575
- }
1576
- />
1577
- <View
1578
- style={
1579
- Array [
1580
- Object {
1581
- "alignItems": "center",
1582
- "height": "100%",
1583
- "justifyContent": "center",
1584
- "opacity": 0,
1585
- "position": "absolute",
1586
- "width": "100%",
1587
- },
1588
- Object {
1589
- "backgroundColor": "#00000033",
1590
- },
1591
- Object {},
1592
- ]
1593
- }
1594
- />
1595
1865
  <View
1596
1866
  style={
1597
1867
  Array [
1598
1868
  Object {
1599
- "alignItems": "center",
1600
- "height": "100%",
1601
- "justifyContent": "center",
1602
- "position": "absolute",
1603
- "width": "100%",
1869
+ "overflow": "hidden",
1604
1870
  },
1605
1871
  Object {
1606
- "backgroundColor": "#00000033",
1872
+ "borderRadius": 10,
1873
+ "height": 100,
1874
+ "width": 100,
1607
1875
  },
1608
- Object {},
1609
1876
  ]
1610
1877
  }
1878
+ testID="active-upload-progress-indicator"
1611
1879
  >
1612
- <View
1613
- style={
1880
+ <Image
1881
+ resizeMode="cover"
1882
+ source={
1614
1883
  Object {
1615
- "alignItems": "center",
1616
- "bottom": 0,
1617
- "justifyContent": "center",
1618
- "left": 0,
1619
- "position": "absolute",
1620
- "right": 0,
1621
- "top": 0,
1884
+ "uri": "http://www.jackblack.com/tenac_iousd.bmp",
1622
1885
  }
1623
1886
  }
1887
+ style={
1888
+ Array [
1889
+ Object {
1890
+ "borderRadius": 10,
1891
+ "height": 100,
1892
+ "width": 100,
1893
+ },
1894
+ Object {},
1895
+ ]
1896
+ }
1897
+ />
1898
+ <View
1899
+ style={
1900
+ Array [
1901
+ Object {
1902
+ "alignItems": "center",
1903
+ "height": "100%",
1904
+ "justifyContent": "center",
1905
+ "opacity": 0,
1906
+ "position": "absolute",
1907
+ "width": "100%",
1908
+ },
1909
+ Object {
1910
+ "backgroundColor": "#000000CC",
1911
+ },
1912
+ Object {},
1913
+ ]
1914
+ }
1915
+ />
1916
+ <View
1917
+ style={
1918
+ Array [
1919
+ Object {
1920
+ "alignItems": "center",
1921
+ "height": "100%",
1922
+ "justifyContent": "center",
1923
+ "position": "absolute",
1924
+ "width": "100%",
1925
+ },
1926
+ Object {
1927
+ "backgroundColor": "#000000CC",
1928
+ },
1929
+ Object {},
1930
+ ]
1931
+ }
1624
1932
  >
1625
- <ActivityIndicator
1626
- animating={true}
1627
- color="#F2F2F2"
1628
- hidesWhenStopped={true}
1629
- size="small"
1630
- testID="upload-progress-indicator"
1631
- />
1933
+ <View
1934
+ style={
1935
+ Object {
1936
+ "alignItems": "center",
1937
+ "bottom": 0,
1938
+ "justifyContent": "center",
1939
+ "left": 0,
1940
+ "position": "absolute",
1941
+ "right": 0,
1942
+ "top": 0,
1943
+ }
1944
+ }
1945
+ >
1946
+ <ActivityIndicator
1947
+ animating={true}
1948
+ color="#F2F2F2"
1949
+ hidesWhenStopped={true}
1950
+ size="small"
1951
+ testID="upload-progress-indicator"
1952
+ />
1953
+ </View>
1632
1954
  </View>
1633
1955
  </View>
1634
- </View>
1635
- <View
1636
- accessible={true}
1637
- focusable={true}
1638
- onClick={[Function]}
1639
- onResponderGrant={[Function]}
1640
- onResponderMove={[Function]}
1641
- onResponderRelease={[Function]}
1642
- onResponderTerminate={[Function]}
1643
- onResponderTerminationRequest={[Function]}
1644
- onStartShouldSetResponder={[Function]}
1645
- style={
1646
- Object {
1647
- "backgroundColor": "#00000099",
1648
- "borderRadius": 24,
1649
- "opacity": 1,
1650
- "position": "absolute",
1651
- "right": 8,
1652
- "top": 8,
1653
- }
1654
- }
1655
- testID="remove-image-upload-preview"
1656
- >
1657
- <RNSVGSvgView
1658
- align="xMidYMid"
1659
- bbHeight={24}
1660
- bbWidth={24}
1661
- focusable={false}
1662
- height={24}
1663
- meetOrSlice={0}
1664
- minX={0}
1665
- minY={0}
1666
- pathFill="#FFFFFF"
1956
+ <View
1957
+ accessible={true}
1958
+ focusable={true}
1959
+ onClick={[Function]}
1960
+ onResponderGrant={[Function]}
1961
+ onResponderMove={[Function]}
1962
+ onResponderRelease={[Function]}
1963
+ onResponderTerminate={[Function]}
1964
+ onResponderTerminationRequest={[Function]}
1965
+ onStartShouldSetResponder={[Function]}
1667
1966
  style={
1668
- Array [
1669
- Object {
1670
- "backgroundColor": "transparent",
1671
- "borderWidth": 0,
1672
- },
1673
- Object {
1674
- "flex": 0,
1675
- "height": 24,
1676
- "width": 24,
1677
- },
1678
- ]
1967
+ Object {
1968
+ "backgroundColor": "#000000CC",
1969
+ "borderRadius": 24,
1970
+ "opacity": 1,
1971
+ "position": "absolute",
1972
+ "right": 8,
1973
+ "top": 8,
1974
+ }
1679
1975
  }
1680
- vbHeight={24}
1681
- vbWidth={24}
1682
- width={24}
1976
+ testID="remove-image-upload-preview"
1683
1977
  >
1684
- <RNSVGGroup>
1685
- <RNSVGPath
1686
- clipRule={0}
1687
- d="M7.05 7.05a1 1 0 000 1.414L10.586 12 7.05 15.536a1 1 0 101.414 1.414L12 13.414l3.536 3.536a1 1 0 001.414-1.414L13.414 12l3.536-3.536a1 1 0 00-1.414-1.414L12 10.586 8.464 7.05a1 1 0 00-1.414 0z"
1688
- fill={4294967295}
1689
- fillRule={0}
1690
- propList={
1691
- Array [
1692
- "fill",
1693
- "fillRule",
1694
- ]
1695
- }
1696
- />
1697
- </RNSVGGroup>
1698
- </RNSVGSvgView>
1978
+ <RNSVGSvgView
1979
+ align="xMidYMid"
1980
+ bbHeight={24}
1981
+ bbWidth={24}
1982
+ focusable={false}
1983
+ height={24}
1984
+ meetOrSlice={0}
1985
+ minX={0}
1986
+ minY={0}
1987
+ pathFill="#FFFFFF"
1988
+ style={
1989
+ Array [
1990
+ Object {
1991
+ "backgroundColor": "transparent",
1992
+ "borderWidth": 0,
1993
+ },
1994
+ Object {
1995
+ "flex": 0,
1996
+ "height": 24,
1997
+ "width": 24,
1998
+ },
1999
+ ]
2000
+ }
2001
+ vbHeight={24}
2002
+ vbWidth={24}
2003
+ width={24}
2004
+ >
2005
+ <RNSVGGroup>
2006
+ <RNSVGPath
2007
+ clipRule={0}
2008
+ d="M7.05 7.05a1 1 0 000 1.414L10.586 12 7.05 15.536a1 1 0 101.414 1.414L12 13.414l3.536 3.536a1 1 0 001.414-1.414L13.414 12l3.536-3.536a1 1 0 00-1.414-1.414L12 10.586 8.464 7.05a1 1 0 00-1.414 0z"
2009
+ fill={4294967295}
2010
+ fillRule={0}
2011
+ propList={
2012
+ Array [
2013
+ "fill",
2014
+ "fillRule",
2015
+ ]
2016
+ }
2017
+ />
2018
+ </RNSVGGroup>
2019
+ </RNSVGSvgView>
2020
+ </View>
1699
2021
  </View>
1700
2022
  </View>
1701
- </View>
1702
- <View>
1703
2023
  <View
1704
2024
  style={
1705
2025
  Array [
1706
2026
  Object {
1707
2027
  "flexDirection": "row",
1708
- "height": 100,
1709
- "marginLeft": 8,
1710
2028
  },
1711
- Object {},
1712
- Object {},
2029
+ null,
1713
2030
  ]
1714
2031
  }
1715
2032
  >
@@ -1717,173 +2034,180 @@ exports[`ImageUploadPreview should render ImageUploadPreview with all uploading
1717
2034
  style={
1718
2035
  Array [
1719
2036
  Object {
1720
- "overflow": "hidden",
1721
- },
1722
- Object {
1723
- "borderRadius": 10,
2037
+ "flexDirection": "row",
1724
2038
  "height": 100,
1725
- "width": 100,
2039
+ "marginLeft": 8,
1726
2040
  },
2041
+ Object {},
2042
+ Object {},
1727
2043
  ]
1728
2044
  }
1729
- testID="active-upload-progress-indicator"
1730
2045
  >
1731
- <Image
1732
- resizeMode="cover"
1733
- source={
1734
- Object {
1735
- "uri": "http://www.jackblack.com/tenac_iousd.bmp",
1736
- }
1737
- }
1738
- style={
1739
- Array [
1740
- Object {
1741
- "borderRadius": 10,
1742
- "height": 100,
1743
- "width": 100,
1744
- },
1745
- Object {},
1746
- ]
1747
- }
1748
- />
1749
2046
  <View
1750
2047
  style={
1751
2048
  Array [
1752
2049
  Object {
1753
- "alignItems": "center",
1754
- "height": "100%",
1755
- "justifyContent": "center",
1756
- "opacity": 0,
1757
- "position": "absolute",
1758
- "width": "100%",
2050
+ "overflow": "hidden",
1759
2051
  },
1760
2052
  Object {
1761
- "backgroundColor": "#00000033",
1762
- },
1763
- Object {},
1764
- ]
1765
- }
1766
- />
1767
- <View
1768
- style={
1769
- Array [
1770
- Object {
1771
- "alignItems": "center",
1772
- "height": "100%",
1773
- "justifyContent": "center",
1774
- "position": "absolute",
1775
- "width": "100%",
1776
- },
1777
- Object {
1778
- "backgroundColor": "#00000033",
2053
+ "borderRadius": 10,
2054
+ "height": 100,
2055
+ "width": 100,
1779
2056
  },
1780
- Object {},
1781
2057
  ]
1782
2058
  }
2059
+ testID="active-upload-progress-indicator"
1783
2060
  >
1784
- <View
1785
- style={
2061
+ <Image
2062
+ resizeMode="cover"
2063
+ source={
1786
2064
  Object {
1787
- "alignItems": "center",
1788
- "bottom": 0,
1789
- "justifyContent": "center",
1790
- "left": 0,
1791
- "position": "absolute",
1792
- "right": 0,
1793
- "top": 0,
2065
+ "uri": "http://www.jackblack.com/tenac_iousd.bmp",
1794
2066
  }
1795
2067
  }
2068
+ style={
2069
+ Array [
2070
+ Object {
2071
+ "borderRadius": 10,
2072
+ "height": 100,
2073
+ "width": 100,
2074
+ },
2075
+ Object {},
2076
+ ]
2077
+ }
2078
+ />
2079
+ <View
2080
+ style={
2081
+ Array [
2082
+ Object {
2083
+ "alignItems": "center",
2084
+ "height": "100%",
2085
+ "justifyContent": "center",
2086
+ "opacity": 0,
2087
+ "position": "absolute",
2088
+ "width": "100%",
2089
+ },
2090
+ Object {
2091
+ "backgroundColor": "#000000CC",
2092
+ },
2093
+ Object {},
2094
+ ]
2095
+ }
2096
+ />
2097
+ <View
2098
+ style={
2099
+ Array [
2100
+ Object {
2101
+ "alignItems": "center",
2102
+ "height": "100%",
2103
+ "justifyContent": "center",
2104
+ "position": "absolute",
2105
+ "width": "100%",
2106
+ },
2107
+ Object {
2108
+ "backgroundColor": "#000000CC",
2109
+ },
2110
+ Object {},
2111
+ ]
2112
+ }
1796
2113
  >
1797
- <ActivityIndicator
1798
- animating={true}
1799
- color="#F2F2F2"
1800
- hidesWhenStopped={true}
1801
- size="small"
1802
- testID="upload-progress-indicator"
1803
- />
2114
+ <View
2115
+ style={
2116
+ Object {
2117
+ "alignItems": "center",
2118
+ "bottom": 0,
2119
+ "justifyContent": "center",
2120
+ "left": 0,
2121
+ "position": "absolute",
2122
+ "right": 0,
2123
+ "top": 0,
2124
+ }
2125
+ }
2126
+ >
2127
+ <ActivityIndicator
2128
+ animating={true}
2129
+ color="#F2F2F2"
2130
+ hidesWhenStopped={true}
2131
+ size="small"
2132
+ testID="upload-progress-indicator"
2133
+ />
2134
+ </View>
1804
2135
  </View>
1805
2136
  </View>
1806
- </View>
1807
- <View
1808
- accessible={true}
1809
- focusable={true}
1810
- onClick={[Function]}
1811
- onResponderGrant={[Function]}
1812
- onResponderMove={[Function]}
1813
- onResponderRelease={[Function]}
1814
- onResponderTerminate={[Function]}
1815
- onResponderTerminationRequest={[Function]}
1816
- onStartShouldSetResponder={[Function]}
1817
- style={
1818
- Object {
1819
- "backgroundColor": "#00000099",
1820
- "borderRadius": 24,
1821
- "opacity": 1,
1822
- "position": "absolute",
1823
- "right": 8,
1824
- "top": 8,
1825
- }
1826
- }
1827
- testID="remove-image-upload-preview"
1828
- >
1829
- <RNSVGSvgView
1830
- align="xMidYMid"
1831
- bbHeight={24}
1832
- bbWidth={24}
1833
- focusable={false}
1834
- height={24}
1835
- meetOrSlice={0}
1836
- minX={0}
1837
- minY={0}
1838
- pathFill="#FFFFFF"
2137
+ <View
2138
+ accessible={true}
2139
+ focusable={true}
2140
+ onClick={[Function]}
2141
+ onResponderGrant={[Function]}
2142
+ onResponderMove={[Function]}
2143
+ onResponderRelease={[Function]}
2144
+ onResponderTerminate={[Function]}
2145
+ onResponderTerminationRequest={[Function]}
2146
+ onStartShouldSetResponder={[Function]}
1839
2147
  style={
1840
- Array [
1841
- Object {
1842
- "backgroundColor": "transparent",
1843
- "borderWidth": 0,
1844
- },
1845
- Object {
1846
- "flex": 0,
1847
- "height": 24,
1848
- "width": 24,
1849
- },
1850
- ]
2148
+ Object {
2149
+ "backgroundColor": "#000000CC",
2150
+ "borderRadius": 24,
2151
+ "opacity": 1,
2152
+ "position": "absolute",
2153
+ "right": 8,
2154
+ "top": 8,
2155
+ }
1851
2156
  }
1852
- vbHeight={24}
1853
- vbWidth={24}
1854
- width={24}
2157
+ testID="remove-image-upload-preview"
1855
2158
  >
1856
- <RNSVGGroup>
1857
- <RNSVGPath
1858
- clipRule={0}
1859
- d="M7.05 7.05a1 1 0 000 1.414L10.586 12 7.05 15.536a1 1 0 101.414 1.414L12 13.414l3.536 3.536a1 1 0 001.414-1.414L13.414 12l3.536-3.536a1 1 0 00-1.414-1.414L12 10.586 8.464 7.05a1 1 0 00-1.414 0z"
1860
- fill={4294967295}
1861
- fillRule={0}
1862
- propList={
1863
- Array [
1864
- "fill",
1865
- "fillRule",
1866
- ]
1867
- }
1868
- />
1869
- </RNSVGGroup>
1870
- </RNSVGSvgView>
2159
+ <RNSVGSvgView
2160
+ align="xMidYMid"
2161
+ bbHeight={24}
2162
+ bbWidth={24}
2163
+ focusable={false}
2164
+ height={24}
2165
+ meetOrSlice={0}
2166
+ minX={0}
2167
+ minY={0}
2168
+ pathFill="#FFFFFF"
2169
+ style={
2170
+ Array [
2171
+ Object {
2172
+ "backgroundColor": "transparent",
2173
+ "borderWidth": 0,
2174
+ },
2175
+ Object {
2176
+ "flex": 0,
2177
+ "height": 24,
2178
+ "width": 24,
2179
+ },
2180
+ ]
2181
+ }
2182
+ vbHeight={24}
2183
+ vbWidth={24}
2184
+ width={24}
2185
+ >
2186
+ <RNSVGGroup>
2187
+ <RNSVGPath
2188
+ clipRule={0}
2189
+ d="M7.05 7.05a1 1 0 000 1.414L10.586 12 7.05 15.536a1 1 0 101.414 1.414L12 13.414l3.536 3.536a1 1 0 001.414-1.414L13.414 12l3.536-3.536a1 1 0 00-1.414-1.414L12 10.586 8.464 7.05a1 1 0 00-1.414 0z"
2190
+ fill={4294967295}
2191
+ fillRule={0}
2192
+ propList={
2193
+ Array [
2194
+ "fill",
2195
+ "fillRule",
2196
+ ]
2197
+ }
2198
+ />
2199
+ </RNSVGGroup>
2200
+ </RNSVGSvgView>
2201
+ </View>
1871
2202
  </View>
1872
2203
  </View>
1873
- </View>
1874
- <View>
1875
2204
  <View
1876
2205
  style={
1877
2206
  Array [
1878
2207
  Object {
1879
2208
  "flexDirection": "row",
1880
- "height": 100,
1881
- "marginLeft": 8,
1882
2209
  },
1883
- Object {
1884
- "marginRight": 8,
1885
- },
1886
- Object {},
2210
+ null,
1887
2211
  ]
1888
2212
  }
1889
2213
  >
@@ -1891,159 +2215,175 @@ exports[`ImageUploadPreview should render ImageUploadPreview with all uploading
1891
2215
  style={
1892
2216
  Array [
1893
2217
  Object {
1894
- "overflow": "hidden",
2218
+ "flexDirection": "row",
2219
+ "height": 100,
2220
+ "marginLeft": 8,
1895
2221
  },
1896
2222
  Object {
1897
- "borderRadius": 10,
1898
- "height": 100,
1899
- "width": 100,
2223
+ "marginRight": 8,
1900
2224
  },
2225
+ Object {},
1901
2226
  ]
1902
2227
  }
1903
- testID="active-upload-progress-indicator"
1904
2228
  >
1905
- <Image
1906
- resizeMode="cover"
1907
- source={
1908
- Object {
1909
- "uri": "http://www.jackblack.com/tenac_iousd.bmp",
1910
- }
1911
- }
1912
- style={
1913
- Array [
1914
- Object {
1915
- "borderRadius": 10,
1916
- "height": 100,
1917
- "width": 100,
1918
- },
1919
- Object {},
1920
- ]
1921
- }
1922
- />
1923
- <View
1924
- style={
1925
- Array [
1926
- Object {
1927
- "alignItems": "center",
1928
- "height": "100%",
1929
- "justifyContent": "center",
1930
- "opacity": 0,
1931
- "position": "absolute",
1932
- "width": "100%",
1933
- },
1934
- Object {
1935
- "backgroundColor": "#00000033",
1936
- },
1937
- Object {},
1938
- ]
1939
- }
1940
- />
1941
2229
  <View
1942
2230
  style={
1943
2231
  Array [
1944
2232
  Object {
1945
- "alignItems": "center",
1946
- "height": "100%",
1947
- "justifyContent": "center",
1948
- "position": "absolute",
1949
- "width": "100%",
2233
+ "overflow": "hidden",
1950
2234
  },
1951
2235
  Object {
1952
- "backgroundColor": "#00000033",
2236
+ "borderRadius": 10,
2237
+ "height": 100,
2238
+ "width": 100,
1953
2239
  },
1954
- Object {},
1955
2240
  ]
1956
2241
  }
2242
+ testID="active-upload-progress-indicator"
1957
2243
  >
1958
- <View
1959
- style={
2244
+ <Image
2245
+ resizeMode="cover"
2246
+ source={
1960
2247
  Object {
1961
- "alignItems": "center",
1962
- "bottom": 0,
1963
- "justifyContent": "center",
1964
- "left": 0,
1965
- "position": "absolute",
1966
- "right": 0,
1967
- "top": 0,
2248
+ "uri": "http://www.jackblack.com/tenac_iousd.bmp",
1968
2249
  }
1969
2250
  }
2251
+ style={
2252
+ Array [
2253
+ Object {
2254
+ "borderRadius": 10,
2255
+ "height": 100,
2256
+ "width": 100,
2257
+ },
2258
+ Object {},
2259
+ ]
2260
+ }
2261
+ />
2262
+ <View
2263
+ style={
2264
+ Array [
2265
+ Object {
2266
+ "alignItems": "center",
2267
+ "height": "100%",
2268
+ "justifyContent": "center",
2269
+ "opacity": 0,
2270
+ "position": "absolute",
2271
+ "width": "100%",
2272
+ },
2273
+ Object {
2274
+ "backgroundColor": "#000000CC",
2275
+ },
2276
+ Object {},
2277
+ ]
2278
+ }
2279
+ />
2280
+ <View
2281
+ style={
2282
+ Array [
2283
+ Object {
2284
+ "alignItems": "center",
2285
+ "height": "100%",
2286
+ "justifyContent": "center",
2287
+ "position": "absolute",
2288
+ "width": "100%",
2289
+ },
2290
+ Object {
2291
+ "backgroundColor": "#000000CC",
2292
+ },
2293
+ Object {},
2294
+ ]
2295
+ }
1970
2296
  >
1971
- <ActivityIndicator
1972
- animating={true}
1973
- color="#F2F2F2"
1974
- hidesWhenStopped={true}
1975
- size="small"
1976
- testID="upload-progress-indicator"
1977
- />
2297
+ <View
2298
+ style={
2299
+ Object {
2300
+ "alignItems": "center",
2301
+ "bottom": 0,
2302
+ "justifyContent": "center",
2303
+ "left": 0,
2304
+ "position": "absolute",
2305
+ "right": 0,
2306
+ "top": 0,
2307
+ }
2308
+ }
2309
+ >
2310
+ <ActivityIndicator
2311
+ animating={true}
2312
+ color="#F2F2F2"
2313
+ hidesWhenStopped={true}
2314
+ size="small"
2315
+ testID="upload-progress-indicator"
2316
+ />
2317
+ </View>
1978
2318
  </View>
1979
2319
  </View>
1980
- </View>
1981
- <View
1982
- accessible={true}
1983
- focusable={true}
1984
- onClick={[Function]}
1985
- onResponderGrant={[Function]}
1986
- onResponderMove={[Function]}
1987
- onResponderRelease={[Function]}
1988
- onResponderTerminate={[Function]}
1989
- onResponderTerminationRequest={[Function]}
1990
- onStartShouldSetResponder={[Function]}
1991
- style={
1992
- Object {
1993
- "backgroundColor": "#00000099",
1994
- "borderRadius": 24,
1995
- "opacity": 1,
1996
- "position": "absolute",
1997
- "right": 8,
1998
- "top": 8,
1999
- }
2000
- }
2001
- testID="remove-image-upload-preview"
2002
- >
2003
- <RNSVGSvgView
2004
- align="xMidYMid"
2005
- bbHeight={24}
2006
- bbWidth={24}
2007
- focusable={false}
2008
- height={24}
2009
- meetOrSlice={0}
2010
- minX={0}
2011
- minY={0}
2012
- pathFill="#FFFFFF"
2320
+ <View
2321
+ accessible={true}
2322
+ focusable={true}
2323
+ onClick={[Function]}
2324
+ onResponderGrant={[Function]}
2325
+ onResponderMove={[Function]}
2326
+ onResponderRelease={[Function]}
2327
+ onResponderTerminate={[Function]}
2328
+ onResponderTerminationRequest={[Function]}
2329
+ onStartShouldSetResponder={[Function]}
2013
2330
  style={
2014
- Array [
2015
- Object {
2016
- "backgroundColor": "transparent",
2017
- "borderWidth": 0,
2018
- },
2019
- Object {
2020
- "flex": 0,
2021
- "height": 24,
2022
- "width": 24,
2023
- },
2024
- ]
2331
+ Object {
2332
+ "backgroundColor": "#000000CC",
2333
+ "borderRadius": 24,
2334
+ "opacity": 1,
2335
+ "position": "absolute",
2336
+ "right": 8,
2337
+ "top": 8,
2338
+ }
2025
2339
  }
2026
- vbHeight={24}
2027
- vbWidth={24}
2028
- width={24}
2340
+ testID="remove-image-upload-preview"
2029
2341
  >
2030
- <RNSVGGroup>
2031
- <RNSVGPath
2032
- clipRule={0}
2033
- d="M7.05 7.05a1 1 0 000 1.414L10.586 12 7.05 15.536a1 1 0 101.414 1.414L12 13.414l3.536 3.536a1 1 0 001.414-1.414L13.414 12l3.536-3.536a1 1 0 00-1.414-1.414L12 10.586 8.464 7.05a1 1 0 00-1.414 0z"
2034
- fill={4294967295}
2035
- fillRule={0}
2036
- propList={
2037
- Array [
2038
- "fill",
2039
- "fillRule",
2040
- ]
2041
- }
2042
- />
2043
- </RNSVGGroup>
2044
- </RNSVGSvgView>
2342
+ <RNSVGSvgView
2343
+ align="xMidYMid"
2344
+ bbHeight={24}
2345
+ bbWidth={24}
2346
+ focusable={false}
2347
+ height={24}
2348
+ meetOrSlice={0}
2349
+ minX={0}
2350
+ minY={0}
2351
+ pathFill="#FFFFFF"
2352
+ style={
2353
+ Array [
2354
+ Object {
2355
+ "backgroundColor": "transparent",
2356
+ "borderWidth": 0,
2357
+ },
2358
+ Object {
2359
+ "flex": 0,
2360
+ "height": 24,
2361
+ "width": 24,
2362
+ },
2363
+ ]
2364
+ }
2365
+ vbHeight={24}
2366
+ vbWidth={24}
2367
+ width={24}
2368
+ >
2369
+ <RNSVGGroup>
2370
+ <RNSVGPath
2371
+ clipRule={0}
2372
+ d="M7.05 7.05a1 1 0 000 1.414L10.586 12 7.05 15.536a1 1 0 101.414 1.414L12 13.414l3.536 3.536a1 1 0 001.414-1.414L13.414 12l3.536-3.536a1 1 0 00-1.414-1.414L12 10.586 8.464 7.05a1 1 0 00-1.414 0z"
2373
+ fill={4294967295}
2374
+ fillRule={0}
2375
+ propList={
2376
+ Array [
2377
+ "fill",
2378
+ "fillRule",
2379
+ ]
2380
+ }
2381
+ />
2382
+ </RNSVGGroup>
2383
+ </RNSVGSvgView>
2384
+ </View>
2045
2385
  </View>
2046
2386
  </View>
2047
2387
  </View>
2048
- </View>
2388
+ </RCTScrollView>
2049
2389
  `;