stream-chat-react-native-core 4.3.1 → 4.4.0-beta.3

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