@legendapp/list 3.3.11 → 3.4.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/CHANGELOG.md +8 -0
- package/animated.d.ts +6 -0
- package/package.json +1 -1
- package/react-native.d.ts +6 -0
- package/react-native.js +282 -162
- package/react-native.mjs +282 -162
- package/react-native.web.d.ts +7 -0
- package/react-native.web.js +272 -158
- package/react-native.web.mjs +272 -158
- package/react.d.ts +7 -0
- package/react.js +272 -158
- package/react.mjs +272 -158
- package/reanimated.d.ts +6 -0
- package/section-list.d.ts +6 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## 3.4.0
|
|
2
|
+
|
|
3
|
+
- Feat: Add `onReady`, called after each initial placement and scroll cycle completes, including cycles restarted by a `dataKey` change.
|
|
4
|
+
- Fix: End-following and animated programmatic scrolling now stay aligned through footer, viewport, and native layout changes, while user dragging cancels queued follow requests.
|
|
5
|
+
- Fix: `onStartReached` and `onEndReached` callbacks now fire reliably after layout and dataset resets, including short lists and gestures that cross a threshold over multiple events.
|
|
6
|
+
- Fix: Numeric `initialScrollIndex` values that target the last row now include the footer when opening at the end.
|
|
7
|
+
- Perf: Fast scrolling now prepares rows in the direction you are moving, including upward and end-aligned scrolling, so the next content is ready sooner.
|
|
8
|
+
|
|
1
9
|
## 3.3.11
|
|
2
10
|
|
|
3
11
|
- Fix: `scrollToEnd` and `maintainScrollAtEnd` keep reaching the end as content changes, while scrolling away or requesting another position cancels automatic following.
|
package/animated.d.ts
CHANGED
|
@@ -333,6 +333,12 @@ interface LegendListSpecificProps<ItemT, TItemType extends string | undefined> {
|
|
|
333
333
|
onLoad?: (info: {
|
|
334
334
|
elapsedTimeInMs: number;
|
|
335
335
|
}) => void;
|
|
336
|
+
/**
|
|
337
|
+
* Called after layout and initial scrolling complete, including after a
|
|
338
|
+
* dataKey reset. Unlike onLoad, this runs for each initial placement cycle.
|
|
339
|
+
* Ordinary data updates do not trigger it unless they restart initial placement.
|
|
340
|
+
*/
|
|
341
|
+
onReady?: () => void;
|
|
336
342
|
/**
|
|
337
343
|
* Called when list layout metrics change.
|
|
338
344
|
*/
|
package/package.json
CHANGED
package/react-native.d.ts
CHANGED
|
@@ -333,6 +333,12 @@ interface LegendListSpecificProps<ItemT, TItemType extends string | undefined> {
|
|
|
333
333
|
onLoad?: (info: {
|
|
334
334
|
elapsedTimeInMs: number;
|
|
335
335
|
}) => void;
|
|
336
|
+
/**
|
|
337
|
+
* Called after layout and initial scrolling complete, including after a
|
|
338
|
+
* dataKey reset. Unlike onLoad, this runs for each initial placement cycle.
|
|
339
|
+
* Ordinary data updates do not trigger it unless they restart initial placement.
|
|
340
|
+
*/
|
|
341
|
+
onReady?: () => void;
|
|
336
342
|
/**
|
|
337
343
|
* Called when list layout metrics change.
|
|
338
344
|
*/
|