@legendapp/list 3.3.10 → 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.
@@ -6,6 +6,7 @@ type ScrollEventTarget = Window | HTMLElement;
6
6
  interface ScrollViewMethods {
7
7
  getBoundingClientRect(): DOMRect | null | undefined;
8
8
  getCurrentScrollOffset(): number;
9
+ getMaxScrollOffset(): number;
9
10
  getScrollableNode(): HTMLElement;
10
11
  getScrollEventTarget(): ScrollEventTarget | null;
11
12
  getScrollResponder(): HTMLElement | null;
@@ -356,6 +357,12 @@ interface LegendListSpecificProps<ItemT, TItemType extends string | undefined> {
356
357
  onLoad?: (info: {
357
358
  elapsedTimeInMs: number;
358
359
  }) => void;
360
+ /**
361
+ * Called after layout and initial scrolling complete, including after a
362
+ * dataKey reset. Unlike onLoad, this runs for each initial placement cycle.
363
+ * Ordinary data updates do not trigger it unless they restart initial placement.
364
+ */
365
+ onReady?: () => void;
359
366
  /**
360
367
  * Called when list layout metrics change.
361
368
  */
@@ -811,6 +818,7 @@ interface LooseScrollViewProps {
811
818
  onMomentumScrollEnd?: (event: NativeSyntheticEvent<NativeScrollEvent>) => void;
812
819
  onScroll?: (event: NativeSyntheticEvent<NativeScrollEvent>) => void;
813
820
  onScrollBeginDrag?: (event: NativeSyntheticEvent<NativeScrollEvent>) => void;
821
+ onScrollEndDrag?: (event: NativeSyntheticEvent<NativeScrollEvent>) => void;
814
822
  refreshControl?: ReactElement | null;
815
823
  removeClippedSubviews?: boolean;
816
824
  scrollEventThrottle?: number;