@shopify/flash-list 1.6.4 → 1.7.0
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.
- package/RNFlashList.podspec +13 -2
- package/android/build.gradle +18 -0
- package/android/src/main/kotlin/com/shopify/reactnative/flash_list/AutoLayoutShadow.kt +1 -1
- package/android/src/main/kotlin/com/shopify/reactnative/flash_list/AutoLayoutView.kt +16 -8
- package/android/src/main/kotlin/com/shopify/reactnative/flash_list/AutoLayoutViewManager.kt +19 -18
- package/android/src/main/kotlin/com/shopify/reactnative/flash_list/BlankAreaEvent.kt +29 -0
- package/android/src/main/kotlin/com/shopify/reactnative/flash_list/CellContainerManager.kt +12 -5
- package/android/src/paper/java/com/facebook/react/viewmanagers/AutoLayoutViewManagerDelegate.java +46 -0
- package/android/src/paper/java/com/facebook/react/viewmanagers/AutoLayoutViewManagerInterface.java +21 -0
- package/android/src/paper/java/com/facebook/react/viewmanagers/CellContainerManagerDelegate.java +31 -0
- package/android/src/paper/java/com/facebook/react/viewmanagers/CellContainerManagerInterface.java +16 -0
- package/android/src/test/java/com/shopify/reactnative/flash_list/AutoLayoutShadowTest.kt +3 -3
- package/dist/FlashList.d.ts +1 -1
- package/dist/MasonryFlashList.d.ts.map +1 -1
- package/dist/MasonryFlashList.js +6 -4
- package/dist/MasonryFlashList.js.map +1 -1
- package/dist/__tests__/helpers/mountFlashList.d.ts +1 -1
- package/dist/__tests__/helpers/mountFlashList.d.ts.map +1 -1
- package/dist/__tests__/helpers/mountFlashList.js +1 -1
- package/dist/__tests__/helpers/mountFlashList.js.map +1 -1
- package/dist/__tests__/helpers/mountMasonryFlashList.d.ts +1 -1
- package/dist/__tests__/helpers/mountMasonryFlashList.d.ts.map +1 -1
- package/dist/__tests__/helpers/mountMasonryFlashList.js +1 -1
- package/dist/__tests__/helpers/mountMasonryFlashList.js.map +1 -1
- package/dist/__tests__/useBlankAreaTracker.test.js +1 -1
- package/dist/__tests__/useBlankAreaTracker.test.js.map +1 -1
- package/dist/native/auto-layout/AutoLayoutView.d.ts +1 -1
- package/dist/native/cell-container/CellContainer.web.d.ts +1 -1
- package/dist/native/cell-container/CellContainer.web.d.ts.map +1 -1
- package/dist/specs/AutoLayoutNativeComponent.d.ts +19 -0
- package/dist/specs/AutoLayoutNativeComponent.d.ts.map +1 -0
- package/dist/specs/AutoLayoutNativeComponent.js +6 -0
- package/dist/specs/AutoLayoutNativeComponent.js.map +1 -0
- package/dist/specs/CellContainerNativeComponent.d.ts +9 -0
- package/dist/specs/CellContainerNativeComponent.d.ts.map +1 -0
- package/dist/specs/CellContainerNativeComponent.js +6 -0
- package/dist/specs/CellContainerNativeComponent.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/ios/Sources/AutoLayoutView.swift +47 -29
- package/ios/Sources/AutoLayoutViewComponentView.h +16 -0
- package/ios/Sources/AutoLayoutViewComponentView.mm +90 -0
- package/ios/Sources/CellContainerComponentView.h +18 -0
- package/ios/Sources/CellContainerComponentView.mm +62 -0
- package/ios/Sources/CellContainerManager.swift +1 -1
- package/ios/Sources/FlatListPro-Bridging-Header.h +3 -0
- package/package.json +26 -21
- package/src/MasonryFlashList.tsx +5 -2
- package/src/__tests__/helpers/mountFlashList.tsx +2 -2
- package/src/__tests__/helpers/mountMasonryFlashList.tsx +2 -2
- package/src/__tests__/useBlankAreaTracker.test.tsx +2 -2
- package/src/specs/AutoLayoutNativeComponent.ts +24 -0
- package/src/specs/CellContainerNativeComponent.ts +9 -0
- package/CHANGELOG.md +0 -284
- package/ios/Sources/CellContainer.swift +0 -9
- /package/ios/Sources/{AutoLayoutViewManager.m → AutoLayoutViewManager.mm} +0 -0
- /package/ios/Sources/{CellContainerManager.m → CellContainerManager.mm} +0 -0
package/CHANGELOG.md
DELETED
|
@@ -1,284 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
|
|
5
|
-
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
|
6
|
-
and adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
|
7
|
-
|
|
8
|
-
## [Unreleased]
|
|
9
|
-
|
|
10
|
-
- Fix `ItemSeparatorComponent ` position for the `inverted` flashlist
|
|
11
|
-
- https://github.com/Shopify/flash-list/pull/1046
|
|
12
|
-
- Do not show render size unsuable warning in better layout changes
|
|
13
|
-
- https://github.com/Shopify/flash-list/pull/1092
|
|
14
|
-
|
|
15
|
-
## [1.6.3] - 2023-11-09
|
|
16
|
-
|
|
17
|
-
- Changes for RN 0.73 support
|
|
18
|
-
- https://github.com/Shopify/flash-list/pull/930
|
|
19
|
-
|
|
20
|
-
## [1.6.2] - 2023-10-19
|
|
21
|
-
|
|
22
|
-
- Move shouldRefreshWithAnchoring configuration so it is possible to disable it from outside FlashList by invalidating layout
|
|
23
|
-
- https://github.com/Shopify/flash-list/pull/935
|
|
24
|
-
|
|
25
|
-
## [1.6.1] - 2023-09-14
|
|
26
|
-
|
|
27
|
-
- Prevent an expired layout provider from being used again
|
|
28
|
-
- https://github.com/Shopify/flash-list/pull/915
|
|
29
|
-
|
|
30
|
-
## [1.6.0] - 2023-09-13
|
|
31
|
-
|
|
32
|
-
- Update types to match `react-native@0.72` view types.
|
|
33
|
-
- https://github.com/Shopify/flash-list/pull/890
|
|
34
|
-
- Add option to clear cached layouts on update
|
|
35
|
-
- https://github.com/Shopify/flash-list/pull/910
|
|
36
|
-
|
|
37
|
-
## [1.5.0] - 2023-07-12
|
|
38
|
-
|
|
39
|
-
- Update kotlin version to 1.8.10 for RN 0.72 compatibility
|
|
40
|
-
- https://github.com/Shopify/flash-list/pull/865
|
|
41
|
-
|
|
42
|
-
## [1.4.3] - 2023-04-24
|
|
43
|
-
|
|
44
|
-
- Fix definition conflicts with previous value
|
|
45
|
-
- https://github.com/Shopify/flash-list/pull/795
|
|
46
|
-
- Fix Android unit test
|
|
47
|
-
- https://github.com/Shopify/flash-list/pull/815
|
|
48
|
-
- Fix performance issues with inverted lists on Android
|
|
49
|
-
- https://github.com/Shopify/flash-list/pull/819
|
|
50
|
-
|
|
51
|
-
## [1.4.2] - 2023-03-20
|
|
52
|
-
|
|
53
|
-
- Apply layout correction only to consecutive cells
|
|
54
|
-
- https://github.com/Shopify/flash-list/pull/788
|
|
55
|
-
|
|
56
|
-
## [1.4.1] - 2023-01-24
|
|
57
|
-
|
|
58
|
-
- Prevent overflow of sticky headers
|
|
59
|
-
- https://github.com/Shopify/flash-list/pull/714
|
|
60
|
-
- Skip footer correction when layout correction is skipped
|
|
61
|
-
- https://github.com/Shopify/flash-list/pull/743
|
|
62
|
-
|
|
63
|
-
## [1.4.0] - 2022-11-07
|
|
64
|
-
|
|
65
|
-
- Add content padding support to FlashList
|
|
66
|
-
- https://github.com/Shopify/flash-list/pull/626
|
|
67
|
-
- Upgrade recyclerlistview to v4.2.0
|
|
68
|
-
- https://github.com/Shopify/flash-list/pull/660
|
|
69
|
-
|
|
70
|
-
## [1.3.1] - 2022-10-11
|
|
71
|
-
|
|
72
|
-
- Expose `columnIndex` and `columnSpan` to `MasonryFlashList.renderItem`
|
|
73
|
-
- https://github.com/Shopify/flash-list/pull/625
|
|
74
|
-
|
|
75
|
-
## [1.3.0] - 2022-09-26
|
|
76
|
-
|
|
77
|
-
- Added `MasonryFlashList` which adds support for rendering masonry layouts
|
|
78
|
-
- https://github.com/Shopify/flash-list/pull/587
|
|
79
|
-
|
|
80
|
-
## [1.2.2] - 2022-09-06
|
|
81
|
-
|
|
82
|
-
- Fixes type checking error in `AutoLayoutView` due to `children` not being an explicit type
|
|
83
|
-
- https://github.com/Shopify/flash-list/pull/567
|
|
84
|
-
|
|
85
|
-
## [1.2.1] - 2022-08-03
|
|
86
|
-
|
|
87
|
-
- Fixed crash when `estimatedListSize` is used in an empty list
|
|
88
|
-
- https://github.com/Shopify/flash-list/pull/546
|
|
89
|
-
|
|
90
|
-
## [1.2.0] - 2022-07-18
|
|
91
|
-
|
|
92
|
-
- Fixed out of bound read from data
|
|
93
|
-
- https://github.com/Shopify/flash-list/pull/523
|
|
94
|
-
- Added JS only fallbacks for unsupported platforms
|
|
95
|
-
- https://github.com/Shopify/flash-list/pull/518
|
|
96
|
-
- Added footer correction in AutoLayoutView
|
|
97
|
-
- https://github.com/Shopify/flash-list/pull/519
|
|
98
|
-
- Added `viewPosition` and `viewOffset` support scrollTo methods
|
|
99
|
-
- https://github.com/Shopify/flash-list/pull/521
|
|
100
|
-
- Fix inverted mode while being horizontal
|
|
101
|
-
- https://github.com/Shopify/flash-list/pull/520
|
|
102
|
-
- Upgrade recyclerlistview to v4.1.1
|
|
103
|
-
- https://github.com/Shopify/flash-list/pull/526
|
|
104
|
-
|
|
105
|
-
## [1.1.0] - 2022-07-06
|
|
106
|
-
|
|
107
|
-
- Added render target info to `renderItem` callback
|
|
108
|
-
- https://github.com/Shopify/flash-list/pull/454
|
|
109
|
-
- Add Apple TV support
|
|
110
|
-
- https://github.com/Shopify/flash-list/pull/511
|
|
111
|
-
- Clarify installation instructions in Expo projects
|
|
112
|
-
- https://github.com/Shopify/flash-list/pull/497
|
|
113
|
-
- Upgrade recyclerlistview to v4.0.1
|
|
114
|
-
- https://github.com/Shopify/flash-list/pull/507
|
|
115
|
-
- Add tslib as a dependency
|
|
116
|
-
- https://github.com/Shopify/flash-list/pull/514
|
|
117
|
-
|
|
118
|
-
## [1.0.4] - 2022-07-02
|
|
119
|
-
|
|
120
|
-
- Build fix for Android projects having `kotlinVersion` defined in `build.gradle`.
|
|
121
|
-
- Allow providing an external scrollview.
|
|
122
|
-
- https://github.com/Shopify/flash-list/pull/502
|
|
123
|
-
|
|
124
|
-
## [1.0.3] - 2022-07-01
|
|
125
|
-
|
|
126
|
-
- Add kotlin-gradle-plugin to buildscript in project build.gradle
|
|
127
|
-
- https://github.com/Shopify/flash-list/pull/481
|
|
128
|
-
|
|
129
|
-
## [1.0.2] - 2022-06-30
|
|
130
|
-
|
|
131
|
-
- Minor changes
|
|
132
|
-
|
|
133
|
-
## [1.0.1] - 2022-06-30
|
|
134
|
-
|
|
135
|
-
- `data` prop change will force update items only if `renderItem` is also updated
|
|
136
|
-
- https://github.com/Shopify/flash-list/pull/453
|
|
137
|
-
|
|
138
|
-
## [1.0.0] - 2022-06-17
|
|
139
|
-
|
|
140
|
-
- Upgrade recyclerlistview to v3.3.0-beta.2
|
|
141
|
-
- https://github.com/Shopify/flash-list/pull/445
|
|
142
|
-
- Added web support
|
|
143
|
-
- https://github.com/Shopify/flash-list/pull/444
|
|
144
|
-
- Added `disableAutoLayout` prop to prevent conflicts with custom `CellRendererComponent`
|
|
145
|
-
- https://github.com/Shopify/flash-list/pull/452
|
|
146
|
-
|
|
147
|
-
## [0.6.1] - 2022-05-26
|
|
148
|
-
|
|
149
|
-
- Fix amending layout on iOS
|
|
150
|
-
- https://github.com/Shopify/flash-list/pull/412
|
|
151
|
-
- Define `FlashList` props previously inherited from `VirtualizedList` and `FlatList` explicitly
|
|
152
|
-
- https://github.com/Shopify/flash-list/pull/386
|
|
153
|
-
- Make `estimatedItemSize` optional
|
|
154
|
-
- https://github.com/Shopify/flash-list/pull/378
|
|
155
|
-
- Change `overrideItemType` prop name to `getItemType`
|
|
156
|
-
- https://github.com/Shopify/flash-list/pull/369
|
|
157
|
-
- Added `useBlankAreaTracker` hook for tracking blank area in production
|
|
158
|
-
- https://github.com/Shopify/flash-list/pull/411
|
|
159
|
-
- Added `CellRendererComponent` prop
|
|
160
|
-
- https://github.com/Shopify/flash-list/pull/362
|
|
161
|
-
- Added automatic height measurement for horizontal lists even when parent isn't deterministic
|
|
162
|
-
- https://github.com/Shopify/flash-list/pull/409
|
|
163
|
-
|
|
164
|
-
## [0.5.0] - 2022-04-29
|
|
165
|
-
|
|
166
|
-
- Fix finding props with testId
|
|
167
|
-
- https://github.com/Shopify/flash-list/pull/357
|
|
168
|
-
- Reuse cached layouts on orientation change
|
|
169
|
-
- https://github.com/Shopify/flash-list/pull/319
|
|
170
|
-
|
|
171
|
-
## [0.4.6] - 2022-04-13
|
|
172
|
-
|
|
173
|
-
- Match FlashList's empty list behavior with FlatList
|
|
174
|
-
- https://github.com/Shopify/flash-list/pull/312
|
|
175
|
-
|
|
176
|
-
## [0.4.5] - 2022-04-13
|
|
177
|
-
|
|
178
|
-
- Upgrade recyclerlistview to v3.2.0-beta.4
|
|
179
|
-
|
|
180
|
-
- https://github.com/Shopify/flash-list/pull/315
|
|
181
|
-
|
|
182
|
-
- Add viewability callbacks
|
|
183
|
-
|
|
184
|
-
- https://github.com/Shopify/flash-list/pull/301
|
|
185
|
-
|
|
186
|
-
- Calculate average item sizes automatically
|
|
187
|
-
- https://github.com/Shopify/flash-list/pull/296
|
|
188
|
-
|
|
189
|
-
## [0.4.4] - 2022-04-06
|
|
190
|
-
|
|
191
|
-
- Fix `FlashList` mock when no data is provided
|
|
192
|
-
- https://github.com/Shopify/flash-list/pull/295
|
|
193
|
-
|
|
194
|
-
## [0.4.3] - 2022-04-04
|
|
195
|
-
|
|
196
|
-
- Reduce number of render item calls
|
|
197
|
-
|
|
198
|
-
- https://github.com/Shopify/flash-list/pull/253
|
|
199
|
-
|
|
200
|
-
- Upgrade recyclerlistview to v3.2.0-beta.2
|
|
201
|
-
- https://github.com/Shopify/flash-list/pull/284
|
|
202
|
-
|
|
203
|
-
## [0.4.2] - 2022-04-04
|
|
204
|
-
|
|
205
|
-
- Minor changes
|
|
206
|
-
|
|
207
|
-
## [0.4.1] - 2022-03-29
|
|
208
|
-
|
|
209
|
-
- Crash fix for android activity switching (#256)
|
|
210
|
-
|
|
211
|
-
- https://github.com/Shopify/flash-list/pull/257
|
|
212
|
-
|
|
213
|
-
- initialScrollIndex, scrollTo methods will now account for size of header
|
|
214
|
-
|
|
215
|
-
- https://github.com/Shopify/flash-list/pull/194
|
|
216
|
-
|
|
217
|
-
- Added a new mock for easier testing of components with `FlashList`
|
|
218
|
-
- https://github.com/Shopify/flash-list/pull/236
|
|
219
|
-
|
|
220
|
-
## [0.4.0] - 2022-03-23
|
|
221
|
-
|
|
222
|
-
- Add support for layout animations
|
|
223
|
-
|
|
224
|
-
- https://github.com/Shopify/flash-list/pull/183
|
|
225
|
-
|
|
226
|
-
- Suppress recyclerlistview's bounded size exception for some missing cases.
|
|
227
|
-
|
|
228
|
-
- https://github.com/Shopify/flash-list/pull/192
|
|
229
|
-
|
|
230
|
-
- Expose reference to recyclerlistview and firstItemOffset
|
|
231
|
-
|
|
232
|
-
- https://github.com/Shopify/flash-list/pull/217
|
|
233
|
-
|
|
234
|
-
- recyclerlistview upgraded to v3.1.0-alpha.9
|
|
235
|
-
- https://github.com/Shopify/flash-list/pull/227
|
|
236
|
-
|
|
237
|
-
## [0.3.3] - 2022-03-16
|
|
238
|
-
|
|
239
|
-
- Prevent implicit scroll to top on device orientation change
|
|
240
|
-
- Change recyclerlistview's bounded size exception to a warning
|
|
241
|
-
- https://github.com/Shopify/flash-list/pull/187
|
|
242
|
-
|
|
243
|
-
## [0.3.2] - 2022-03-15
|
|
244
|
-
|
|
245
|
-
- Minor changes
|
|
246
|
-
|
|
247
|
-
## [0.3.1] - 2022-03-15
|
|
248
|
-
|
|
249
|
-
- Revert react-native-safe-area upgrade and minSdkVersion bump
|
|
250
|
-
- https://github.com/Shopify/flash-list/pull/184
|
|
251
|
-
|
|
252
|
-
## [0.3.0] - 2022-03-15
|
|
253
|
-
|
|
254
|
-
- Fixed untranspiled library code by enforcing stricter TS rules.
|
|
255
|
-
- https://github.com/Shopify/flash-list/pull/181
|
|
256
|
-
|
|
257
|
-
## [0.2.4] - 2022-03-14
|
|
258
|
-
|
|
259
|
-
- Added `onLoad` event that is called once the list has rendered items. This is required because FlashList doesn't render items in the first cycle.
|
|
260
|
-
- https://github.com/Shopify/flash-list/pull/180
|
|
261
|
-
|
|
262
|
-
## [0.2.3] - 2022-03-10
|
|
263
|
-
|
|
264
|
-
- Fixing publish steps for transpiled code
|
|
265
|
-
- https://github.com/Shopify/flash-list/pull/150
|
|
266
|
-
|
|
267
|
-
## [0.2.2] - 2022-03-10
|
|
268
|
-
|
|
269
|
-
- Fixing publish steps for transpiled code
|
|
270
|
-
- https://github.com/Shopify/flash-list/pull/149
|
|
271
|
-
|
|
272
|
-
## [0.2.1] - 2022-03-09
|
|
273
|
-
|
|
274
|
-
- Bug fix for style and last separator
|
|
275
|
-
- https://github.com/Shopify/flash-list/pull/141
|
|
276
|
-
|
|
277
|
-
## [0.2.0] - 2022-03-08
|
|
278
|
-
|
|
279
|
-
- Rename the component from `RecyclerFlatList` to `FlashList`
|
|
280
|
-
- https://github.com/Shopify/flash-list/pull/140
|
|
281
|
-
|
|
282
|
-
## [0.1.0] - 2022-03-02
|
|
283
|
-
|
|
284
|
-
- Initial release
|
|
File without changes
|
|
File without changes
|