@legendapp/list 3.0.3 → 3.0.5
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 +13 -0
- package/animated.d.ts +11 -4
- package/keyboard-legacy.d.ts +5 -4
- package/keyboard.d.ts +11 -4
- package/package.json +1 -1
- package/react-native.d.ts +11 -4
- package/react-native.js +489 -284
- package/react-native.mjs +489 -284
- package/react-native.web.d.ts +11 -4
- package/react-native.web.js +489 -284
- package/react-native.web.mjs +490 -285
- package/react.d.ts +11 -4
- package/react.js +489 -284
- package/react.mjs +490 -285
- package/reanimated.d.ts +11 -4
- package/section-list.d.ts +11 -4
package/react-native.web.d.ts
CHANGED
|
@@ -417,12 +417,22 @@ interface MaintainVisibleContentPositionConfig<ItemT = any> {
|
|
|
417
417
|
size?: boolean;
|
|
418
418
|
shouldRestorePosition?: (item: ItemT, index: number, data: readonly ItemT[]) => boolean;
|
|
419
419
|
}
|
|
420
|
+
interface AnchoredEndSpaceReadyInfo {
|
|
421
|
+
anchorIndex: number | undefined;
|
|
422
|
+
anchorKey: string | undefined;
|
|
423
|
+
size: number;
|
|
424
|
+
}
|
|
425
|
+
interface ScrollToEndOptions {
|
|
426
|
+
animated?: boolean;
|
|
427
|
+
viewOffset?: number;
|
|
428
|
+
}
|
|
420
429
|
interface AnchoredEndSpaceConfig$1 {
|
|
421
430
|
anchorIndex: number;
|
|
422
431
|
anchorOffset?: number;
|
|
423
432
|
anchorMaxSize?: number;
|
|
424
433
|
includeInEndInset?: boolean;
|
|
425
434
|
onSizeChanged?: (size: number) => void;
|
|
435
|
+
onReady?: (info: AnchoredEndSpaceReadyInfo) => void;
|
|
426
436
|
}
|
|
427
437
|
interface StickyHeaderConfig {
|
|
428
438
|
/**
|
|
@@ -554,10 +564,7 @@ type LegendListRef$1 = {
|
|
|
554
564
|
* @param options.animated - If true, animates the scroll. Default: true.
|
|
555
565
|
* @param options.viewOffset - Offset from the target position.
|
|
556
566
|
*/
|
|
557
|
-
scrollToEnd(options?:
|
|
558
|
-
animated?: boolean | undefined;
|
|
559
|
-
viewOffset?: number | undefined;
|
|
560
|
-
}): Promise<void>;
|
|
567
|
+
scrollToEnd(options?: ScrollToEndOptions): Promise<void>;
|
|
561
568
|
/**
|
|
562
569
|
* Scrolls to a specific index in the list.
|
|
563
570
|
* @param params - Parameters for scrolling.
|