@shopify/flash-list 1.0.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 (206) hide show
  1. package/CHANGELOG.md +159 -0
  2. package/LICENSE.md +7 -0
  3. package/README.md +65 -0
  4. package/RNFlashList.podspec +26 -0
  5. package/android/build.gradle +59 -0
  6. package/android/src/main/AndroidManifest.xml +3 -0
  7. package/android/src/main/kotlin/com/shopify/reactnative/flash_list/AutoLayoutShadow.kt +94 -0
  8. package/android/src/main/kotlin/com/shopify/reactnative/flash_list/AutoLayoutView.kt +79 -0
  9. package/android/src/main/kotlin/com/shopify/reactnative/flash_list/AutoLayoutViewManager.kt +69 -0
  10. package/android/src/main/kotlin/com/shopify/reactnative/flash_list/CellContainer.java +16 -0
  11. package/android/src/main/kotlin/com/shopify/reactnative/flash_list/CellContainerImpl.kt +16 -0
  12. package/android/src/main/kotlin/com/shopify/reactnative/flash_list/CellContainerManager.kt +27 -0
  13. package/android/src/main/kotlin/com/shopify/reactnative/flash_list/FlashListPackage.kt +19 -0
  14. package/android/src/test/java/com/shopify/reactnative/flash_list/AutoLayoutShadowTest.kt +146 -0
  15. package/android/src/test/java/com/shopify/reactnative/flash_list/models/Rect.kt +59 -0
  16. package/android/src/test/java/com/shopify/reactnative/flash_list/models/TestCollection.kt +6 -0
  17. package/android/src/test/java/com/shopify/reactnative/flash_list/models/TestDataModel.kt +8 -0
  18. package/android/src/test/resources/LayoutTestData.json +708 -0
  19. package/dist/AnimatedFlashList.d.ts +6 -0
  20. package/dist/AnimatedFlashList.d.ts.map +1 -0
  21. package/dist/AnimatedFlashList.js +8 -0
  22. package/dist/AnimatedFlashList.js.map +1 -0
  23. package/dist/FlashList.d.ts +121 -0
  24. package/dist/FlashList.d.ts.map +1 -0
  25. package/dist/FlashList.js +502 -0
  26. package/dist/FlashList.js.map +1 -0
  27. package/dist/FlashListProps.d.ts +251 -0
  28. package/dist/FlashListProps.d.ts.map +1 -0
  29. package/dist/FlashListProps.js +3 -0
  30. package/dist/FlashListProps.js.map +1 -0
  31. package/dist/GridLayoutProviderWithProps.d.ts +30 -0
  32. package/dist/GridLayoutProviderWithProps.d.ts.map +1 -0
  33. package/dist/GridLayoutProviderWithProps.js +80 -0
  34. package/dist/GridLayoutProviderWithProps.js.map +1 -0
  35. package/dist/PureComponentWrapper.d.ts +22 -0
  36. package/dist/PureComponentWrapper.d.ts.map +1 -0
  37. package/dist/PureComponentWrapper.js +37 -0
  38. package/dist/PureComponentWrapper.js.map +1 -0
  39. package/dist/__tests__/AverageWindow.test.d.ts +2 -0
  40. package/dist/__tests__/AverageWindow.test.d.ts.map +1 -0
  41. package/dist/__tests__/AverageWindow.test.js +69 -0
  42. package/dist/__tests__/AverageWindow.test.js.map +1 -0
  43. package/dist/__tests__/FlashList.test.d.ts +2 -0
  44. package/dist/__tests__/FlashList.test.d.ts.map +1 -0
  45. package/dist/__tests__/FlashList.test.js +656 -0
  46. package/dist/__tests__/FlashList.test.js.map +1 -0
  47. package/dist/__tests__/GridLayoutProviderWithProps.test.d.ts +2 -0
  48. package/dist/__tests__/GridLayoutProviderWithProps.test.d.ts.map +1 -0
  49. package/dist/__tests__/GridLayoutProviderWithProps.test.js +133 -0
  50. package/dist/__tests__/GridLayoutProviderWithProps.test.js.map +1 -0
  51. package/dist/__tests__/PlatformHelper.web.test.d.ts +2 -0
  52. package/dist/__tests__/PlatformHelper.web.test.d.ts.map +1 -0
  53. package/dist/__tests__/PlatformHelper.web.test.js +25 -0
  54. package/dist/__tests__/PlatformHelper.web.test.js.map +1 -0
  55. package/dist/__tests__/ViewabilityHelper.test.d.ts +2 -0
  56. package/dist/__tests__/ViewabilityHelper.test.d.ts.map +1 -0
  57. package/dist/__tests__/ViewabilityHelper.test.js +187 -0
  58. package/dist/__tests__/ViewabilityHelper.test.js.map +1 -0
  59. package/dist/__tests__/helpers/mountFlashList.d.ts +20 -0
  60. package/dist/__tests__/helpers/mountFlashList.d.ts.map +1 -0
  61. package/dist/__tests__/helpers/mountFlashList.js +44 -0
  62. package/dist/__tests__/helpers/mountFlashList.js.map +1 -0
  63. package/dist/__tests__/useBlankAreaTracker.test.d.ts +2 -0
  64. package/dist/__tests__/useBlankAreaTracker.test.d.ts.map +1 -0
  65. package/dist/__tests__/useBlankAreaTracker.test.js +179 -0
  66. package/dist/__tests__/useBlankAreaTracker.test.js.map +1 -0
  67. package/dist/benchmark/AutoScrollHelper.d.ts +18 -0
  68. package/dist/benchmark/AutoScrollHelper.d.ts.map +1 -0
  69. package/dist/benchmark/AutoScrollHelper.js +68 -0
  70. package/dist/benchmark/AutoScrollHelper.js.map +1 -0
  71. package/dist/benchmark/JSFPSMonitor.d.ts +23 -0
  72. package/dist/benchmark/JSFPSMonitor.d.ts.map +1 -0
  73. package/dist/benchmark/JSFPSMonitor.js +65 -0
  74. package/dist/benchmark/JSFPSMonitor.js.map +1 -0
  75. package/dist/benchmark/roundToDecimalPlaces.d.ts +2 -0
  76. package/dist/benchmark/roundToDecimalPlaces.d.ts.map +1 -0
  77. package/dist/benchmark/roundToDecimalPlaces.js +9 -0
  78. package/dist/benchmark/roundToDecimalPlaces.js.map +1 -0
  79. package/dist/benchmark/useBenchmark.d.ts +35 -0
  80. package/dist/benchmark/useBenchmark.d.ts.map +1 -0
  81. package/dist/benchmark/useBenchmark.js +167 -0
  82. package/dist/benchmark/useBenchmark.js.map +1 -0
  83. package/dist/benchmark/useBlankAreaTracker.d.ts +34 -0
  84. package/dist/benchmark/useBlankAreaTracker.d.ts.map +1 -0
  85. package/dist/benchmark/useBlankAreaTracker.js +67 -0
  86. package/dist/benchmark/useBlankAreaTracker.js.map +1 -0
  87. package/dist/benchmark/useDataMultiplier.d.ts +9 -0
  88. package/dist/benchmark/useDataMultiplier.d.ts.map +1 -0
  89. package/dist/benchmark/useDataMultiplier.js +25 -0
  90. package/dist/benchmark/useDataMultiplier.js.map +1 -0
  91. package/dist/benchmark/useFlatListBenchmark.d.ts +13 -0
  92. package/dist/benchmark/useFlatListBenchmark.d.ts.map +1 -0
  93. package/dist/benchmark/useFlatListBenchmark.js +100 -0
  94. package/dist/benchmark/useFlatListBenchmark.js.map +1 -0
  95. package/dist/errors/CustomError.d.ts +8 -0
  96. package/dist/errors/CustomError.d.ts.map +1 -0
  97. package/dist/errors/CustomError.js +14 -0
  98. package/dist/errors/CustomError.js.map +1 -0
  99. package/dist/errors/ExceptionList.d.ts +20 -0
  100. package/dist/errors/ExceptionList.d.ts.map +1 -0
  101. package/dist/errors/ExceptionList.js +22 -0
  102. package/dist/errors/ExceptionList.js.map +1 -0
  103. package/dist/errors/Warnings.d.ts +10 -0
  104. package/dist/errors/Warnings.d.ts.map +1 -0
  105. package/dist/errors/Warnings.js +15 -0
  106. package/dist/errors/Warnings.js.map +1 -0
  107. package/dist/index.d.ts +13 -0
  108. package/dist/index.d.ts.map +1 -0
  109. package/dist/index.js +28 -0
  110. package/dist/index.js.map +1 -0
  111. package/dist/native/auto-layout/AutoLayoutView.d.ts +21 -0
  112. package/dist/native/auto-layout/AutoLayoutView.d.ts.map +1 -0
  113. package/dist/native/auto-layout/AutoLayoutView.js +48 -0
  114. package/dist/native/auto-layout/AutoLayoutView.js.map +1 -0
  115. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.d.ts +4 -0
  116. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.d.ts.map +1 -0
  117. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.js +6 -0
  118. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.js.map +1 -0
  119. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.web.d.ts +5 -0
  120. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.web.d.ts.map +1 -0
  121. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.web.js +6 -0
  122. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.web.js.map +1 -0
  123. package/dist/native/auto-layout/AutoLayoutViewNativeComponentProps.d.ts +14 -0
  124. package/dist/native/auto-layout/AutoLayoutViewNativeComponentProps.d.ts.map +1 -0
  125. package/dist/native/auto-layout/AutoLayoutViewNativeComponentProps.js +3 -0
  126. package/dist/native/auto-layout/AutoLayoutViewNativeComponentProps.js.map +1 -0
  127. package/dist/native/cell-container/CellContainer.d.ts +6 -0
  128. package/dist/native/cell-container/CellContainer.d.ts.map +1 -0
  129. package/dist/native/cell-container/CellContainer.js +9 -0
  130. package/dist/native/cell-container/CellContainer.js.map +1 -0
  131. package/dist/native/cell-container/CellContainer.web.d.ts +7 -0
  132. package/dist/native/cell-container/CellContainer.web.d.ts.map +1 -0
  133. package/dist/native/cell-container/CellContainer.web.js +13 -0
  134. package/dist/native/cell-container/CellContainer.web.js.map +1 -0
  135. package/dist/tsconfig.tsbuildinfo +1 -0
  136. package/dist/utils/AverageWindow.d.ts +21 -0
  137. package/dist/utils/AverageWindow.d.ts.map +1 -0
  138. package/dist/utils/AverageWindow.js +49 -0
  139. package/dist/utils/AverageWindow.js.map +1 -0
  140. package/dist/utils/PlatformHelper.d.ts +14 -0
  141. package/dist/utils/PlatformHelper.d.ts.map +1 -0
  142. package/dist/utils/PlatformHelper.js +16 -0
  143. package/dist/utils/PlatformHelper.js.map +1 -0
  144. package/dist/utils/PlatformHelper.web.d.ts +14 -0
  145. package/dist/utils/PlatformHelper.web.d.ts.map +1 -0
  146. package/dist/utils/PlatformHelper.web.js +18 -0
  147. package/dist/utils/PlatformHelper.web.js.map +1 -0
  148. package/dist/viewability/ViewToken.d.ts +8 -0
  149. package/dist/viewability/ViewToken.d.ts.map +1 -0
  150. package/dist/viewability/ViewToken.js +3 -0
  151. package/dist/viewability/ViewToken.js.map +1 -0
  152. package/dist/viewability/ViewabilityHelper.d.ts +25 -0
  153. package/dist/viewability/ViewabilityHelper.d.ts.map +1 -0
  154. package/dist/viewability/ViewabilityHelper.js +104 -0
  155. package/dist/viewability/ViewabilityHelper.js.map +1 -0
  156. package/dist/viewability/ViewabilityManager.d.ts +24 -0
  157. package/dist/viewability/ViewabilityManager.d.ts.map +1 -0
  158. package/dist/viewability/ViewabilityManager.js +94 -0
  159. package/dist/viewability/ViewabilityManager.js.map +1 -0
  160. package/ios/RNFlashList.xcodeproj/project.pbxproj +3 -0
  161. package/ios/RNFlashList.xcodeproj/project.xcworkspace/contents.xcworkspacedata +4 -0
  162. package/ios/Sources/AutoLayoutView.swift +218 -0
  163. package/ios/Sources/AutoLayoutViewManager.m +14 -0
  164. package/ios/Sources/AutoLayoutViewManager.swift +12 -0
  165. package/ios/Sources/CellContainer.swift +9 -0
  166. package/ios/Sources/CellContainerManager.m +8 -0
  167. package/ios/Sources/CellContainerManager.swift +12 -0
  168. package/ios/Sources/FlatListPro-Bridging-Header.h +8 -0
  169. package/ios/Tests/AutoLayoutViewTests.swift +113 -0
  170. package/jestSetup.js +15 -0
  171. package/package.json +75 -0
  172. package/src/AnimatedFlashList.ts +11 -0
  173. package/src/FlashList.tsx +801 -0
  174. package/src/FlashListProps.ts +312 -0
  175. package/src/GridLayoutProviderWithProps.ts +137 -0
  176. package/src/PureComponentWrapper.tsx +42 -0
  177. package/src/__tests__/AverageWindow.test.ts +80 -0
  178. package/src/__tests__/FlashList.test.tsx +738 -0
  179. package/src/__tests__/GridLayoutProviderWithProps.test.ts +150 -0
  180. package/src/__tests__/PlatformHelper.web.test.ts +29 -0
  181. package/src/__tests__/ViewabilityHelper.test.ts +283 -0
  182. package/src/__tests__/helpers/mountFlashList.tsx +62 -0
  183. package/src/__tests__/useBlankAreaTracker.test.tsx +206 -0
  184. package/src/benchmark/AutoScrollHelper.ts +70 -0
  185. package/src/benchmark/JSFPSMonitor.ts +74 -0
  186. package/src/benchmark/roundToDecimalPlaces.ts +4 -0
  187. package/src/benchmark/useBenchmark.ts +240 -0
  188. package/src/benchmark/useBlankAreaTracker.ts +117 -0
  189. package/src/benchmark/useDataMultiplier.ts +19 -0
  190. package/src/benchmark/useFlatListBenchmark.ts +107 -0
  191. package/src/errors/CustomError.ts +10 -0
  192. package/src/errors/ExceptionList.ts +23 -0
  193. package/src/errors/Warnings.ts +18 -0
  194. package/src/index.ts +32 -0
  195. package/src/native/auto-layout/AutoLayoutView.tsx +72 -0
  196. package/src/native/auto-layout/AutoLayoutViewNativeComponent.ts +7 -0
  197. package/src/native/auto-layout/AutoLayoutViewNativeComponent.web.ts +8 -0
  198. package/src/native/auto-layout/AutoLayoutViewNativeComponentProps.ts +14 -0
  199. package/src/native/cell-container/CellContainer.ts +7 -0
  200. package/src/native/cell-container/CellContainer.web.tsx +9 -0
  201. package/src/utils/AverageWindow.ts +49 -0
  202. package/src/utils/PlatformHelper.ts +16 -0
  203. package/src/utils/PlatformHelper.web.ts +20 -0
  204. package/src/viewability/ViewToken.ts +7 -0
  205. package/src/viewability/ViewabilityHelper.ts +162 -0
  206. package/src/viewability/ViewabilityManager.ts +133 -0
@@ -0,0 +1,708 @@
1
+ {
2
+ "vertical": [
3
+ {
4
+ "input": [
5
+ {
6
+ "top": 0,
7
+ "left": 0,
8
+ "width": 100,
9
+ "height": 100,
10
+ "right": 100,
11
+ "bottom": 100
12
+ },
13
+ {
14
+ "top": 0,
15
+ "left": 90,
16
+ "width": 100,
17
+ "height": 100,
18
+ "right": 190,
19
+ "bottom": 100
20
+ }
21
+ ],
22
+ "expectedOutput": [
23
+ {
24
+ "left": 0,
25
+ "right": 100,
26
+ "width": 100,
27
+ "top": 0,
28
+ "bottom": 100,
29
+ "height": 100
30
+ },
31
+ {
32
+ "left": 100,
33
+ "right": 200,
34
+ "width": 100,
35
+ "top": 0,
36
+ "bottom": 100,
37
+ "height": 100
38
+ }
39
+ ]
40
+ },
41
+ {
42
+ "input": [
43
+ {
44
+ "top": 0,
45
+ "left": 0,
46
+ "width": 100,
47
+ "height": 100,
48
+ "right": 100,
49
+ "bottom": 100
50
+ },
51
+ {
52
+ "top": 0,
53
+ "left": 90,
54
+ "width": 100,
55
+ "height": 100,
56
+ "right": 190,
57
+ "bottom": 100
58
+ },
59
+ {
60
+ "top": 0,
61
+ "left": 220,
62
+ "width": 100,
63
+ "height": 100,
64
+ "right": 320,
65
+ "bottom": 100
66
+ }
67
+ ],
68
+ "expectedOutput": [
69
+ {
70
+ "left": 0,
71
+ "right": 100,
72
+ "width": 100,
73
+ "top": 0,
74
+ "bottom": 100,
75
+ "height": 100
76
+ },
77
+ {
78
+ "left": 100,
79
+ "right": 200,
80
+ "width": 100,
81
+ "top": 0,
82
+ "bottom": 100,
83
+ "height": 100
84
+ },
85
+ {
86
+ "left": 200,
87
+ "right": 300,
88
+ "width": 100,
89
+ "top": 0,
90
+ "bottom": 100,
91
+ "height": 100
92
+ }
93
+ ]
94
+ },
95
+ {
96
+ "input": [
97
+ {
98
+ "top": 0,
99
+ "left": 0,
100
+ "width": 100,
101
+ "height": 100,
102
+ "right": 100,
103
+ "bottom": 100
104
+ },
105
+ {
106
+ "top": 0,
107
+ "left": 90,
108
+ "width": 100,
109
+ "height": 100,
110
+ "right": 190,
111
+ "bottom": 100
112
+ },
113
+ {
114
+ "top": 0,
115
+ "left": 220,
116
+ "width": 100,
117
+ "height": 120,
118
+ "right": 320,
119
+ "bottom": 120
120
+ },
121
+ {
122
+ "top": 100,
123
+ "left": 0,
124
+ "width": 100,
125
+ "height": 120,
126
+ "right": 100,
127
+ "bottom": 220
128
+ },
129
+ {
130
+ "top": 100,
131
+ "left": 100,
132
+ "width": 100,
133
+ "height": 120,
134
+ "right": 200,
135
+ "bottom": 220
136
+ }
137
+ ],
138
+ "expectedOutput": [
139
+ {
140
+ "left": 0,
141
+ "right": 100,
142
+ "width": 100,
143
+ "top": 0,
144
+ "bottom": 100,
145
+ "height": 100
146
+ },
147
+ {
148
+ "left": 100,
149
+ "right": 200,
150
+ "width": 100,
151
+ "top": 0,
152
+ "bottom": 100,
153
+ "height": 100
154
+ },
155
+ {
156
+ "left": 200,
157
+ "right": 300,
158
+ "width": 100,
159
+ "top": 0,
160
+ "bottom": 120,
161
+ "height": 120
162
+ },
163
+ {
164
+ "left": 0,
165
+ "right": 100,
166
+ "width": 100,
167
+ "top": 120,
168
+ "bottom": 240,
169
+ "height": 120
170
+ },
171
+ {
172
+ "left": 100,
173
+ "right": 200,
174
+ "width": 100,
175
+ "top": 120,
176
+ "bottom": 240,
177
+ "height": 120
178
+ }
179
+ ]
180
+ },
181
+ {
182
+ "input": [
183
+ {
184
+ "top": 0,
185
+ "left": 0,
186
+ "width": 100,
187
+ "height": 100,
188
+ "right": 100,
189
+ "bottom": 100
190
+ },
191
+ {
192
+ "top": 0,
193
+ "left": 90,
194
+ "width": 100,
195
+ "height": 100,
196
+ "right": 190,
197
+ "bottom": 100
198
+ },
199
+ {
200
+ "top": 0,
201
+ "left": 220,
202
+ "width": 100,
203
+ "height": 120,
204
+ "right": 320,
205
+ "bottom": 120
206
+ },
207
+ {
208
+ "top": 150,
209
+ "left": 0,
210
+ "width": 100,
211
+ "height": 120,
212
+ "right": 100,
213
+ "bottom": 270
214
+ },
215
+ {
216
+ "top": 100,
217
+ "left": 120,
218
+ "width": 100,
219
+ "height": 120,
220
+ "right": 220,
221
+ "bottom": 220
222
+ }
223
+ ],
224
+ "expectedOutput": [
225
+ {
226
+ "left": 0,
227
+ "right": 100,
228
+ "width": 100,
229
+ "top": 0,
230
+ "bottom": 100,
231
+ "height": 100
232
+ },
233
+ {
234
+ "left": 100,
235
+ "right": 200,
236
+ "width": 100,
237
+ "top": 0,
238
+ "bottom": 100,
239
+ "height": 100
240
+ },
241
+ {
242
+ "left": 200,
243
+ "right": 300,
244
+ "width": 100,
245
+ "top": 0,
246
+ "bottom": 120,
247
+ "height": 120
248
+ },
249
+ {
250
+ "left": 0,
251
+ "right": 100,
252
+ "width": 100,
253
+ "top": 120,
254
+ "bottom": 240,
255
+ "height": 120
256
+ },
257
+ {
258
+ "left": 100,
259
+ "right": 200,
260
+ "width": 100,
261
+ "top": 120,
262
+ "bottom": 240,
263
+ "height": 120
264
+ }
265
+ ]
266
+ },
267
+ {
268
+ "input": [
269
+ {
270
+ "top": 0,
271
+ "left": 0,
272
+ "width": 100,
273
+ "height": 100,
274
+ "right": 100,
275
+ "bottom": 100
276
+ },
277
+ {
278
+ "top": 0,
279
+ "left": 90,
280
+ "width": 100,
281
+ "height": 100,
282
+ "right": 190,
283
+ "bottom": 100
284
+ },
285
+ {
286
+ "top": 0,
287
+ "left": 220,
288
+ "width": 100,
289
+ "height": 120,
290
+ "right": 320,
291
+ "bottom": 120
292
+ },
293
+ {
294
+ "top": 150,
295
+ "left": 0,
296
+ "width": 100,
297
+ "height": 120,
298
+ "right": 100,
299
+ "bottom": 270
300
+ },
301
+ {
302
+ "top": 100,
303
+ "left": 120,
304
+ "width": 100,
305
+ "height": 200,
306
+ "right": 220,
307
+ "bottom": 300
308
+ }
309
+ ],
310
+ "expectedOutput": [
311
+ {
312
+ "left": 0,
313
+ "right": 100,
314
+ "width": 100,
315
+ "top": 0,
316
+ "bottom": 100,
317
+ "height": 100
318
+ },
319
+ {
320
+ "left": 100,
321
+ "right": 200,
322
+ "width": 100,
323
+ "top": 0,
324
+ "bottom": 100,
325
+ "height": 100
326
+ },
327
+ {
328
+ "left": 200,
329
+ "right": 300,
330
+ "width": 100,
331
+ "top": 0,
332
+ "bottom": 120,
333
+ "height": 120
334
+ },
335
+ {
336
+ "left": 0,
337
+ "right": 100,
338
+ "width": 100,
339
+ "top": 120,
340
+ "bottom": 240,
341
+ "height": 120
342
+ },
343
+ {
344
+ "left": 100,
345
+ "right": 200,
346
+ "width": 100,
347
+ "top": 120,
348
+ "bottom": 320,
349
+ "height": 200
350
+ }
351
+ ]
352
+ }
353
+ ],
354
+ "horizontal": [
355
+ {
356
+ "input": [
357
+ {
358
+ "top": 0,
359
+ "left": 0,
360
+ "width": 100,
361
+ "height": 100,
362
+ "right": 100,
363
+ "bottom": 100
364
+ },
365
+ {
366
+ "top": 90,
367
+ "left": 0,
368
+ "width": 100,
369
+ "height": 100,
370
+ "right": 100,
371
+ "bottom": 190
372
+ }
373
+ ],
374
+ "expectedOutput": [
375
+ {
376
+ "left": 0,
377
+ "right": 100,
378
+ "width": 100,
379
+ "top": 0,
380
+ "bottom": 100,
381
+ "height": 100
382
+ },
383
+ {
384
+ "left": 0,
385
+ "right": 100,
386
+ "width": 100,
387
+ "top": 100,
388
+ "bottom": 200,
389
+ "height": 100
390
+ }
391
+ ]
392
+ },
393
+ {
394
+ "input": [
395
+ {
396
+ "top": 0,
397
+ "left": 0,
398
+ "width": 100,
399
+ "height": 100,
400
+ "right": 100,
401
+ "bottom": 100
402
+ },
403
+ {
404
+ "top": 90,
405
+ "left": 0,
406
+ "width": 100,
407
+ "height": 100,
408
+ "right": 100,
409
+ "bottom": 190
410
+ },
411
+ {
412
+ "top": 220,
413
+ "left": 0,
414
+ "width": 100,
415
+ "height": 100,
416
+ "right": 100,
417
+ "bottom": 320
418
+ }
419
+ ],
420
+ "expectedOutput": [
421
+ {
422
+ "left": 0,
423
+ "right": 100,
424
+ "width": 100,
425
+ "top": 0,
426
+ "bottom": 100,
427
+ "height": 100
428
+ },
429
+ {
430
+ "left": 0,
431
+ "right": 100,
432
+ "width": 100,
433
+ "top": 100,
434
+ "bottom": 200,
435
+ "height": 100
436
+ },
437
+ {
438
+ "left": 0,
439
+ "right": 100,
440
+ "width": 100,
441
+ "top": 200,
442
+ "bottom": 300,
443
+ "height": 100
444
+ }
445
+ ]
446
+ },
447
+ {
448
+ "input": [
449
+ {
450
+ "top": 0,
451
+ "left": 0,
452
+ "width": 120,
453
+ "height": 100,
454
+ "right": 120,
455
+ "bottom": 100
456
+ },
457
+ {
458
+ "top": 90,
459
+ "left": 0,
460
+ "width": 100,
461
+ "height": 100,
462
+ "right": 100,
463
+ "bottom": 190
464
+ },
465
+ {
466
+ "top": 220,
467
+ "left": 0,
468
+ "width": 100,
469
+ "height": 100,
470
+ "right": 100,
471
+ "bottom": 320
472
+ },
473
+ {
474
+ "top": 0,
475
+ "left": 100,
476
+ "width": 100,
477
+ "height": 120,
478
+ "right": 200,
479
+ "bottom": 120
480
+ },
481
+ {
482
+ "top": 100,
483
+ "left": 100,
484
+ "width": 100,
485
+ "height": 120,
486
+ "right": 200,
487
+ "bottom": 220
488
+ }
489
+ ],
490
+ "expectedOutput": [
491
+ {
492
+ "left": 0,
493
+ "right": 120,
494
+ "width": 120,
495
+ "top": 0,
496
+ "bottom": 100,
497
+ "height": 100
498
+ },
499
+ {
500
+ "left": 0,
501
+ "right": 100,
502
+ "width": 100,
503
+ "top": 100,
504
+ "bottom": 200,
505
+ "height": 100
506
+ },
507
+ {
508
+ "left": 0,
509
+ "right": 100,
510
+ "width": 100,
511
+ "top": 200,
512
+ "bottom": 300,
513
+ "height": 100
514
+ },
515
+ {
516
+ "left": 120,
517
+ "right": 220,
518
+ "width": 100,
519
+ "top": 0,
520
+ "bottom": 120,
521
+ "height": 120
522
+ },
523
+ {
524
+ "left": 120,
525
+ "right": 220,
526
+ "width": 100,
527
+ "top": 120,
528
+ "bottom": 240,
529
+ "height": 120
530
+ }
531
+ ]
532
+ },
533
+ {
534
+ "input": [
535
+ {
536
+ "top": 0,
537
+ "left": 0,
538
+ "width": 120,
539
+ "height": 100,
540
+ "right": 120,
541
+ "bottom": 100
542
+ },
543
+ {
544
+ "top": 90,
545
+ "left": 0,
546
+ "width": 100,
547
+ "height": 100,
548
+ "right": 100,
549
+ "bottom": 190
550
+ },
551
+ {
552
+ "top": 220,
553
+ "left": 0,
554
+ "width": 100,
555
+ "height": 100,
556
+ "right": 100,
557
+ "bottom": 320
558
+ },
559
+ {
560
+ "top": 0,
561
+ "left": 150,
562
+ "width": 100,
563
+ "height": 120,
564
+ "right": 250,
565
+ "bottom": 120
566
+ },
567
+ {
568
+ "top": 100,
569
+ "left": 120,
570
+ "width": 100,
571
+ "height": 120,
572
+ "right": 220,
573
+ "bottom": 220
574
+ }
575
+ ],
576
+ "expectedOutput": [
577
+ {
578
+ "left": 0,
579
+ "right": 120,
580
+ "width": 120,
581
+ "top": 0,
582
+ "bottom": 100,
583
+ "height": 100
584
+ },
585
+ {
586
+ "left": 0,
587
+ "right": 100,
588
+ "width": 100,
589
+ "top": 100,
590
+ "bottom": 200,
591
+ "height": 100
592
+ },
593
+ {
594
+ "left": 0,
595
+ "right": 100,
596
+ "width": 100,
597
+ "top": 200,
598
+ "bottom": 300,
599
+ "height": 100
600
+ },
601
+ {
602
+ "left": 120,
603
+ "right": 220,
604
+ "width": 100,
605
+ "top": 0,
606
+ "bottom": 120,
607
+ "height": 120
608
+ },
609
+ {
610
+ "left": 120,
611
+ "right": 220,
612
+ "width": 100,
613
+ "top": 120,
614
+ "bottom": 240,
615
+ "height": 120
616
+ }
617
+ ]
618
+ }
619
+ ],
620
+ "window": [
621
+ {
622
+ "input": [
623
+ {
624
+ "top": 0,
625
+ "left": 0,
626
+ "width": 120,
627
+ "height": 100,
628
+ "right": 120,
629
+ "bottom": 100
630
+ },
631
+ {
632
+ "top": 90,
633
+ "left": 0,
634
+ "width": 100,
635
+ "height": 100,
636
+ "right": 100,
637
+ "bottom": 190
638
+ },
639
+ {
640
+ "top": 220,
641
+ "left": 0,
642
+ "width": 100,
643
+ "height": 100,
644
+ "right": 100,
645
+ "bottom": 320
646
+ },
647
+ {
648
+ "top": 0,
649
+ "left": 150,
650
+ "width": 100,
651
+ "height": 120,
652
+ "right": 250,
653
+ "bottom": 120
654
+ },
655
+ {
656
+ "top": 100,
657
+ "left": 120,
658
+ "width": 100,
659
+ "height": 120,
660
+ "right": 220,
661
+ "bottom": 220
662
+ }
663
+ ],
664
+ "expectedOutput": [
665
+ {
666
+ "left": 0,
667
+ "right": 120,
668
+ "width": 120,
669
+ "top": 0,
670
+ "bottom": 100,
671
+ "height": 100
672
+ },
673
+ {
674
+ "left": 0,
675
+ "right": 100,
676
+ "width": 100,
677
+ "top": 100,
678
+ "bottom": 200,
679
+ "height": 100
680
+ },
681
+ {
682
+ "left": 0,
683
+ "right": 100,
684
+ "width": 100,
685
+ "top": 200,
686
+ "bottom": 300,
687
+ "height": 100
688
+ },
689
+ {
690
+ "left": 120,
691
+ "right": 220,
692
+ "width": 100,
693
+ "top": 0,
694
+ "bottom": 120,
695
+ "height": 120
696
+ },
697
+ {
698
+ "top": 100,
699
+ "left": 120,
700
+ "width": 100,
701
+ "height": 120,
702
+ "right": 220,
703
+ "bottom": 220
704
+ }
705
+ ]
706
+ }
707
+ ]
708
+ }
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { Animated } from "react-native";
3
+ import { FlashListProps } from "./FlashListProps";
4
+ declare const AnimatedFlashList: Animated.AnimatedComponent<import("react").ComponentType<FlashListProps<any>>>;
5
+ export default AnimatedFlashList;
6
+ //# sourceMappingURL=AnimatedFlashList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AnimatedFlashList.d.ts","sourceRoot":"","sources":["../src/AnimatedFlashList.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGxC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,QAAA,MAAM,iBAAiB,gFAGpB,CAAC;AAEJ,eAAe,iBAAiB,CAAC"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var tslib_1 = require("tslib");
4
+ var react_native_1 = require("react-native");
5
+ var FlashList_1 = tslib_1.__importDefault(require("./FlashList"));
6
+ var AnimatedFlashList = react_native_1.Animated.createAnimatedComponent(FlashList_1.default);
7
+ exports.default = AnimatedFlashList;
8
+ //# sourceMappingURL=AnimatedFlashList.js.map