@legendapp/list 1.1.2 → 1.1.3
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 +3 -0
- package/animated.d.mts +2 -2
- package/animated.d.ts +2 -2
- package/index.d.mts +12 -12
- package/index.d.ts +12 -12
- package/index.js +3 -3
- package/index.mjs +3 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/animated.d.mts
CHANGED
|
@@ -3,7 +3,7 @@ import * as _legendapp_list from '@legendapp/list';
|
|
|
3
3
|
import * as react_native from 'react-native';
|
|
4
4
|
import { Animated } from 'react-native';
|
|
5
5
|
|
|
6
|
-
declare const AnimatedLegendList: Animated.AnimatedComponent<(<T>(props: Omit<Omit<react_native.ScrollViewProps, "scrollEventThrottle">, "
|
|
6
|
+
declare const AnimatedLegendList: Animated.AnimatedComponent<(<T>(props: Omit<Omit<react_native.ScrollViewProps, "scrollEventThrottle">, "contentOffset" | "contentInset" | "maintainVisibleContentPosition" | "stickyHeaderIndices" | "removeClippedSubviews" | "children"> & {
|
|
7
7
|
alignItemsAtEnd?: boolean;
|
|
8
8
|
columnWrapperStyle?: _legendapp_list.ColumnWrapperStyle;
|
|
9
9
|
data: readonly T[];
|
|
@@ -56,7 +56,7 @@ declare const AnimatedLegendList: Animated.AnimatedComponent<(<T>(props: Omit<Om
|
|
|
56
56
|
recycleItems?: boolean;
|
|
57
57
|
refScrollView?: React.Ref<react_native.ScrollView>;
|
|
58
58
|
refreshing?: boolean;
|
|
59
|
-
renderItem?: ((props: _legendapp_list.LegendListRenderItemProps<T>) => React$1.ReactNode) |
|
|
59
|
+
renderItem?: React$1.ComponentType<_legendapp_list.LegendListRenderItemProps<T>> | ((props: _legendapp_list.LegendListRenderItemProps<T>) => React$1.ReactNode) | undefined;
|
|
60
60
|
renderScrollComponent?: (props: react_native.ScrollViewProps) => React.ReactElement<react_native.ScrollViewProps>;
|
|
61
61
|
suggestEstimatedItemSize?: boolean;
|
|
62
62
|
viewabilityConfig?: _legendapp_list.ViewabilityConfig;
|
package/animated.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import * as _legendapp_list from '@legendapp/list';
|
|
|
3
3
|
import * as react_native from 'react-native';
|
|
4
4
|
import { Animated } from 'react-native';
|
|
5
5
|
|
|
6
|
-
declare const AnimatedLegendList: Animated.AnimatedComponent<(<T>(props: Omit<Omit<react_native.ScrollViewProps, "scrollEventThrottle">, "
|
|
6
|
+
declare const AnimatedLegendList: Animated.AnimatedComponent<(<T>(props: Omit<Omit<react_native.ScrollViewProps, "scrollEventThrottle">, "contentOffset" | "contentInset" | "maintainVisibleContentPosition" | "stickyHeaderIndices" | "removeClippedSubviews" | "children"> & {
|
|
7
7
|
alignItemsAtEnd?: boolean;
|
|
8
8
|
columnWrapperStyle?: _legendapp_list.ColumnWrapperStyle;
|
|
9
9
|
data: readonly T[];
|
|
@@ -56,7 +56,7 @@ declare const AnimatedLegendList: Animated.AnimatedComponent<(<T>(props: Omit<Om
|
|
|
56
56
|
recycleItems?: boolean;
|
|
57
57
|
refScrollView?: React.Ref<react_native.ScrollView>;
|
|
58
58
|
refreshing?: boolean;
|
|
59
|
-
renderItem?: ((props: _legendapp_list.LegendListRenderItemProps<T>) => React$1.ReactNode) |
|
|
59
|
+
renderItem?: React$1.ComponentType<_legendapp_list.LegendListRenderItemProps<T>> | ((props: _legendapp_list.LegendListRenderItemProps<T>) => React$1.ReactNode) | undefined;
|
|
60
60
|
renderScrollComponent?: (props: react_native.ScrollViewProps) => React.ReactElement<react_native.ScrollViewProps>;
|
|
61
61
|
suggestEstimatedItemSize?: boolean;
|
|
62
62
|
viewabilityConfig?: _legendapp_list.ViewabilityConfig;
|
package/index.d.mts
CHANGED
|
@@ -3,9 +3,9 @@ import { ComponentProps, ReactNode, Dispatch, SetStateAction } from 'react';
|
|
|
3
3
|
import * as react_native from 'react-native';
|
|
4
4
|
import { ScrollView, StyleProp, ViewStyle, ScrollViewProps, NativeSyntheticEvent, NativeScrollEvent, ScrollViewComponent, ScrollResponderMixin } from 'react-native';
|
|
5
5
|
import Animated from 'react-native-reanimated';
|
|
6
|
-
import * as _legendapp_list from '@legendapp/list';
|
|
7
|
-
import { LegendListProps as LegendListProps$1, LegendListRef as LegendListRef$1, LegendListRenderItemProps as LegendListRenderItemProps$1 } from '@legendapp/list';
|
|
8
6
|
import * as _legendapp_list_reanimated from '@legendapp/list/reanimated';
|
|
7
|
+
import * as _legendapp_list from '@legendapp/list';
|
|
8
|
+
import { LegendListProps as LegendListProps$1, LegendListRenderItemProps as LegendListRenderItemProps$1, LegendListRef as LegendListRef$1 } from '@legendapp/list';
|
|
9
9
|
|
|
10
10
|
declare class ScrollAdjustHandler {
|
|
11
11
|
private ctx;
|
|
@@ -499,7 +499,7 @@ type ScrollIndexWithOffsetPosition = {
|
|
|
499
499
|
viewPosition?: number;
|
|
500
500
|
};
|
|
501
501
|
|
|
502
|
-
declare const LegendList: <T>(props: Omit<Omit<react_native.ScrollViewProps, "scrollEventThrottle">, "
|
|
502
|
+
declare const LegendList: <T>(props: Omit<Omit<react_native.ScrollViewProps, "scrollEventThrottle">, "contentOffset" | "contentInset" | "maintainVisibleContentPosition" | "stickyHeaderIndices" | "removeClippedSubviews" | "children"> & {
|
|
503
503
|
alignItemsAtEnd?: boolean;
|
|
504
504
|
columnWrapperStyle?: ColumnWrapperStyle;
|
|
505
505
|
data: readonly T[];
|
|
@@ -552,7 +552,7 @@ declare const LegendList: <T>(props: Omit<Omit<react_native.ScrollViewProps, "sc
|
|
|
552
552
|
recycleItems?: boolean;
|
|
553
553
|
refScrollView?: React$1.Ref<ScrollView>;
|
|
554
554
|
refreshing?: boolean;
|
|
555
|
-
renderItem?: ((props: LegendListRenderItemProps<T>) => React$1.ReactNode) |
|
|
555
|
+
renderItem?: React$1.ComponentType<LegendListRenderItemProps<T>> | ((props: LegendListRenderItemProps<T>) => React$1.ReactNode) | undefined;
|
|
556
556
|
renderScrollComponent?: (props: react_native.ScrollViewProps) => React$1.ReactElement<react_native.ScrollViewProps>;
|
|
557
557
|
suggestEstimatedItemSize?: boolean;
|
|
558
558
|
viewabilityConfig?: ViewabilityConfig;
|
|
@@ -567,9 +567,7 @@ interface LazyLegendListProps<ItemT, ListT> extends Omit<LegendListProps$1<ItemT
|
|
|
567
567
|
children?: React$1.ReactNode | undefined;
|
|
568
568
|
LegendList?: ListT;
|
|
569
569
|
}
|
|
570
|
-
declare const LazyLegendList: <ItemT, ListT extends (<
|
|
571
|
-
ref?: React$1.Ref<LegendListRef$1>;
|
|
572
|
-
}) => React$1.ReactElement | null) | (<T>(props: Omit<Omit<react_native.ScrollViewProps, "scrollEventThrottle">, "removeClippedSubviews" | "stickyHeaderIndices" | "children" | "contentInset" | "contentOffset" | "maintainVisibleContentPosition"> & {
|
|
570
|
+
declare const LazyLegendList: <ItemT, ListT extends (<T>(props: Omit<Omit<react_native.ScrollViewProps, "scrollEventThrottle">, "contentOffset" | "contentInset" | "maintainVisibleContentPosition" | "stickyHeaderIndices" | "removeClippedSubviews" | "children"> & {
|
|
573
571
|
alignItemsAtEnd?: boolean;
|
|
574
572
|
columnWrapperStyle?: _legendapp_list.ColumnWrapperStyle;
|
|
575
573
|
data: readonly T[];
|
|
@@ -622,7 +620,7 @@ declare const LazyLegendList: <ItemT, ListT extends (<ItemT_1>(props: _legendapp
|
|
|
622
620
|
recycleItems?: boolean;
|
|
623
621
|
refScrollView?: React$1.Ref<react_native.ScrollView>;
|
|
624
622
|
refreshing?: boolean;
|
|
625
|
-
renderItem?: ((props: LegendListRenderItemProps$1<T>) => React$1.ReactNode) |
|
|
623
|
+
renderItem?: React$1.ComponentType<LegendListRenderItemProps$1<T>> | ((props: LegendListRenderItemProps$1<T>) => React$1.ReactNode) | undefined;
|
|
626
624
|
renderScrollComponent?: (props: react_native.ScrollViewProps) => React$1.ReactElement<react_native.ScrollViewProps>;
|
|
627
625
|
suggestEstimatedItemSize?: boolean;
|
|
628
626
|
viewabilityConfig?: _legendapp_list.ViewabilityConfig;
|
|
@@ -631,7 +629,7 @@ declare const LazyLegendList: <ItemT, ListT extends (<ItemT_1>(props: _legendapp
|
|
|
631
629
|
onLoad?: (info: {
|
|
632
630
|
elapsedTimeInMs: number;
|
|
633
631
|
}) => void;
|
|
634
|
-
} & React$1.RefAttributes<LegendListRef$1>) => React$1.ReactNode) | react_native.Animated.AnimatedComponent<(<T>(props: Omit<Omit<react_native.ScrollViewProps, "scrollEventThrottle">, "
|
|
632
|
+
} & React$1.RefAttributes<LegendListRef$1>) => React$1.ReactNode) | react_native.Animated.AnimatedComponent<(<T>(props: Omit<Omit<react_native.ScrollViewProps, "scrollEventThrottle">, "contentOffset" | "contentInset" | "maintainVisibleContentPosition" | "stickyHeaderIndices" | "removeClippedSubviews" | "children"> & {
|
|
635
633
|
alignItemsAtEnd?: boolean;
|
|
636
634
|
columnWrapperStyle?: _legendapp_list.ColumnWrapperStyle;
|
|
637
635
|
data: readonly T[];
|
|
@@ -684,7 +682,7 @@ declare const LazyLegendList: <ItemT, ListT extends (<ItemT_1>(props: _legendapp
|
|
|
684
682
|
recycleItems?: boolean;
|
|
685
683
|
refScrollView?: React$1.Ref<react_native.ScrollView>;
|
|
686
684
|
refreshing?: boolean;
|
|
687
|
-
renderItem?: ((props: LegendListRenderItemProps$1<T>) => React$1.ReactNode) |
|
|
685
|
+
renderItem?: React$1.ComponentType<LegendListRenderItemProps$1<T>> | ((props: LegendListRenderItemProps$1<T>) => React$1.ReactNode) | undefined;
|
|
688
686
|
renderScrollComponent?: (props: react_native.ScrollViewProps) => React$1.ReactElement<react_native.ScrollViewProps>;
|
|
689
687
|
suggestEstimatedItemSize?: boolean;
|
|
690
688
|
viewabilityConfig?: _legendapp_list.ViewabilityConfig;
|
|
@@ -693,7 +691,9 @@ declare const LazyLegendList: <ItemT, ListT extends (<ItemT_1>(props: _legendapp
|
|
|
693
691
|
onLoad?: (info: {
|
|
694
692
|
elapsedTimeInMs: number;
|
|
695
693
|
}) => void;
|
|
696
|
-
} & React$1.RefAttributes<LegendListRef$1>) => React$1.ReactNode)>
|
|
694
|
+
} & React$1.RefAttributes<LegendListRef$1>) => React$1.ReactNode)> | (<ItemT_1>(props: _legendapp_list_reanimated.AnimatedLegendListProps<ItemT_1> & {
|
|
695
|
+
ref?: React$1.Ref<LegendListRef$1>;
|
|
696
|
+
}) => React$1.ReactElement | null) = <T>(props: Omit<Omit<react_native.ScrollViewProps, "scrollEventThrottle">, "contentOffset" | "contentInset" | "maintainVisibleContentPosition" | "stickyHeaderIndices" | "removeClippedSubviews" | "children"> & {
|
|
697
697
|
alignItemsAtEnd?: boolean;
|
|
698
698
|
columnWrapperStyle?: _legendapp_list.ColumnWrapperStyle;
|
|
699
699
|
data: readonly T[];
|
|
@@ -746,7 +746,7 @@ declare const LazyLegendList: <ItemT, ListT extends (<ItemT_1>(props: _legendapp
|
|
|
746
746
|
recycleItems?: boolean;
|
|
747
747
|
refScrollView?: React$1.Ref<react_native.ScrollView>;
|
|
748
748
|
refreshing?: boolean;
|
|
749
|
-
renderItem?: ((props: LegendListRenderItemProps$1<T>) => React$1.ReactNode) |
|
|
749
|
+
renderItem?: React$1.ComponentType<LegendListRenderItemProps$1<T>> | ((props: LegendListRenderItemProps$1<T>) => React$1.ReactNode) | undefined;
|
|
750
750
|
renderScrollComponent?: (props: react_native.ScrollViewProps) => React$1.ReactElement<react_native.ScrollViewProps>;
|
|
751
751
|
suggestEstimatedItemSize?: boolean;
|
|
752
752
|
viewabilityConfig?: _legendapp_list.ViewabilityConfig;
|
package/index.d.ts
CHANGED
|
@@ -3,9 +3,9 @@ import { ComponentProps, ReactNode, Dispatch, SetStateAction } from 'react';
|
|
|
3
3
|
import * as react_native from 'react-native';
|
|
4
4
|
import { ScrollView, StyleProp, ViewStyle, ScrollViewProps, NativeSyntheticEvent, NativeScrollEvent, ScrollViewComponent, ScrollResponderMixin } from 'react-native';
|
|
5
5
|
import Animated from 'react-native-reanimated';
|
|
6
|
-
import * as _legendapp_list from '@legendapp/list';
|
|
7
|
-
import { LegendListProps as LegendListProps$1, LegendListRef as LegendListRef$1, LegendListRenderItemProps as LegendListRenderItemProps$1 } from '@legendapp/list';
|
|
8
6
|
import * as _legendapp_list_reanimated from '@legendapp/list/reanimated';
|
|
7
|
+
import * as _legendapp_list from '@legendapp/list';
|
|
8
|
+
import { LegendListProps as LegendListProps$1, LegendListRenderItemProps as LegendListRenderItemProps$1, LegendListRef as LegendListRef$1 } from '@legendapp/list';
|
|
9
9
|
|
|
10
10
|
declare class ScrollAdjustHandler {
|
|
11
11
|
private ctx;
|
|
@@ -499,7 +499,7 @@ type ScrollIndexWithOffsetPosition = {
|
|
|
499
499
|
viewPosition?: number;
|
|
500
500
|
};
|
|
501
501
|
|
|
502
|
-
declare const LegendList: <T>(props: Omit<Omit<react_native.ScrollViewProps, "scrollEventThrottle">, "
|
|
502
|
+
declare const LegendList: <T>(props: Omit<Omit<react_native.ScrollViewProps, "scrollEventThrottle">, "contentOffset" | "contentInset" | "maintainVisibleContentPosition" | "stickyHeaderIndices" | "removeClippedSubviews" | "children"> & {
|
|
503
503
|
alignItemsAtEnd?: boolean;
|
|
504
504
|
columnWrapperStyle?: ColumnWrapperStyle;
|
|
505
505
|
data: readonly T[];
|
|
@@ -552,7 +552,7 @@ declare const LegendList: <T>(props: Omit<Omit<react_native.ScrollViewProps, "sc
|
|
|
552
552
|
recycleItems?: boolean;
|
|
553
553
|
refScrollView?: React$1.Ref<ScrollView>;
|
|
554
554
|
refreshing?: boolean;
|
|
555
|
-
renderItem?: ((props: LegendListRenderItemProps<T>) => React$1.ReactNode) |
|
|
555
|
+
renderItem?: React$1.ComponentType<LegendListRenderItemProps<T>> | ((props: LegendListRenderItemProps<T>) => React$1.ReactNode) | undefined;
|
|
556
556
|
renderScrollComponent?: (props: react_native.ScrollViewProps) => React$1.ReactElement<react_native.ScrollViewProps>;
|
|
557
557
|
suggestEstimatedItemSize?: boolean;
|
|
558
558
|
viewabilityConfig?: ViewabilityConfig;
|
|
@@ -567,9 +567,7 @@ interface LazyLegendListProps<ItemT, ListT> extends Omit<LegendListProps$1<ItemT
|
|
|
567
567
|
children?: React$1.ReactNode | undefined;
|
|
568
568
|
LegendList?: ListT;
|
|
569
569
|
}
|
|
570
|
-
declare const LazyLegendList: <ItemT, ListT extends (<
|
|
571
|
-
ref?: React$1.Ref<LegendListRef$1>;
|
|
572
|
-
}) => React$1.ReactElement | null) | (<T>(props: Omit<Omit<react_native.ScrollViewProps, "scrollEventThrottle">, "removeClippedSubviews" | "stickyHeaderIndices" | "children" | "contentInset" | "contentOffset" | "maintainVisibleContentPosition"> & {
|
|
570
|
+
declare const LazyLegendList: <ItemT, ListT extends (<T>(props: Omit<Omit<react_native.ScrollViewProps, "scrollEventThrottle">, "contentOffset" | "contentInset" | "maintainVisibleContentPosition" | "stickyHeaderIndices" | "removeClippedSubviews" | "children"> & {
|
|
573
571
|
alignItemsAtEnd?: boolean;
|
|
574
572
|
columnWrapperStyle?: _legendapp_list.ColumnWrapperStyle;
|
|
575
573
|
data: readonly T[];
|
|
@@ -622,7 +620,7 @@ declare const LazyLegendList: <ItemT, ListT extends (<ItemT_1>(props: _legendapp
|
|
|
622
620
|
recycleItems?: boolean;
|
|
623
621
|
refScrollView?: React$1.Ref<react_native.ScrollView>;
|
|
624
622
|
refreshing?: boolean;
|
|
625
|
-
renderItem?: ((props: LegendListRenderItemProps$1<T>) => React$1.ReactNode) |
|
|
623
|
+
renderItem?: React$1.ComponentType<LegendListRenderItemProps$1<T>> | ((props: LegendListRenderItemProps$1<T>) => React$1.ReactNode) | undefined;
|
|
626
624
|
renderScrollComponent?: (props: react_native.ScrollViewProps) => React$1.ReactElement<react_native.ScrollViewProps>;
|
|
627
625
|
suggestEstimatedItemSize?: boolean;
|
|
628
626
|
viewabilityConfig?: _legendapp_list.ViewabilityConfig;
|
|
@@ -631,7 +629,7 @@ declare const LazyLegendList: <ItemT, ListT extends (<ItemT_1>(props: _legendapp
|
|
|
631
629
|
onLoad?: (info: {
|
|
632
630
|
elapsedTimeInMs: number;
|
|
633
631
|
}) => void;
|
|
634
|
-
} & React$1.RefAttributes<LegendListRef$1>) => React$1.ReactNode) | react_native.Animated.AnimatedComponent<(<T>(props: Omit<Omit<react_native.ScrollViewProps, "scrollEventThrottle">, "
|
|
632
|
+
} & React$1.RefAttributes<LegendListRef$1>) => React$1.ReactNode) | react_native.Animated.AnimatedComponent<(<T>(props: Omit<Omit<react_native.ScrollViewProps, "scrollEventThrottle">, "contentOffset" | "contentInset" | "maintainVisibleContentPosition" | "stickyHeaderIndices" | "removeClippedSubviews" | "children"> & {
|
|
635
633
|
alignItemsAtEnd?: boolean;
|
|
636
634
|
columnWrapperStyle?: _legendapp_list.ColumnWrapperStyle;
|
|
637
635
|
data: readonly T[];
|
|
@@ -684,7 +682,7 @@ declare const LazyLegendList: <ItemT, ListT extends (<ItemT_1>(props: _legendapp
|
|
|
684
682
|
recycleItems?: boolean;
|
|
685
683
|
refScrollView?: React$1.Ref<react_native.ScrollView>;
|
|
686
684
|
refreshing?: boolean;
|
|
687
|
-
renderItem?: ((props: LegendListRenderItemProps$1<T>) => React$1.ReactNode) |
|
|
685
|
+
renderItem?: React$1.ComponentType<LegendListRenderItemProps$1<T>> | ((props: LegendListRenderItemProps$1<T>) => React$1.ReactNode) | undefined;
|
|
688
686
|
renderScrollComponent?: (props: react_native.ScrollViewProps) => React$1.ReactElement<react_native.ScrollViewProps>;
|
|
689
687
|
suggestEstimatedItemSize?: boolean;
|
|
690
688
|
viewabilityConfig?: _legendapp_list.ViewabilityConfig;
|
|
@@ -693,7 +691,9 @@ declare const LazyLegendList: <ItemT, ListT extends (<ItemT_1>(props: _legendapp
|
|
|
693
691
|
onLoad?: (info: {
|
|
694
692
|
elapsedTimeInMs: number;
|
|
695
693
|
}) => void;
|
|
696
|
-
} & React$1.RefAttributes<LegendListRef$1>) => React$1.ReactNode)>
|
|
694
|
+
} & React$1.RefAttributes<LegendListRef$1>) => React$1.ReactNode)> | (<ItemT_1>(props: _legendapp_list_reanimated.AnimatedLegendListProps<ItemT_1> & {
|
|
695
|
+
ref?: React$1.Ref<LegendListRef$1>;
|
|
696
|
+
}) => React$1.ReactElement | null) = <T>(props: Omit<Omit<react_native.ScrollViewProps, "scrollEventThrottle">, "contentOffset" | "contentInset" | "maintainVisibleContentPosition" | "stickyHeaderIndices" | "removeClippedSubviews" | "children"> & {
|
|
697
697
|
alignItemsAtEnd?: boolean;
|
|
698
698
|
columnWrapperStyle?: _legendapp_list.ColumnWrapperStyle;
|
|
699
699
|
data: readonly T[];
|
|
@@ -746,7 +746,7 @@ declare const LazyLegendList: <ItemT, ListT extends (<ItemT_1>(props: _legendapp
|
|
|
746
746
|
recycleItems?: boolean;
|
|
747
747
|
refScrollView?: React$1.Ref<react_native.ScrollView>;
|
|
748
748
|
refreshing?: boolean;
|
|
749
|
-
renderItem?: ((props: LegendListRenderItemProps$1<T>) => React$1.ReactNode) |
|
|
749
|
+
renderItem?: React$1.ComponentType<LegendListRenderItemProps$1<T>> | ((props: LegendListRenderItemProps$1<T>) => React$1.ReactNode) | undefined;
|
|
750
750
|
renderScrollComponent?: (props: react_native.ScrollViewProps) => React$1.ReactElement<react_native.ScrollViewProps>;
|
|
751
751
|
suggestEstimatedItemSize?: boolean;
|
|
752
752
|
viewabilityConfig?: _legendapp_list.ViewabilityConfig;
|
package/index.js
CHANGED
|
@@ -1227,7 +1227,7 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
|
|
|
1227
1227
|
index,
|
|
1228
1228
|
viewOffset = 0,
|
|
1229
1229
|
animated = true,
|
|
1230
|
-
viewPosition
|
|
1230
|
+
viewPosition
|
|
1231
1231
|
}) => {
|
|
1232
1232
|
var _a;
|
|
1233
1233
|
const state = refState.current;
|
|
@@ -1256,7 +1256,7 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
|
|
|
1256
1256
|
state.minIndexSizeChanged = index;
|
|
1257
1257
|
firstIndexScrollPostion = firstIndexOffset - viewOffset + state.scrollAdjustHandler.getAppliedAdjust();
|
|
1258
1258
|
}
|
|
1259
|
-
scrollTo({ offset: firstIndexScrollPostion, animated, index, viewPosition, viewOffset });
|
|
1259
|
+
scrollTo({ offset: firstIndexScrollPostion, animated, index, viewPosition: viewPosition != null ? viewPosition : 0, viewOffset });
|
|
1260
1260
|
};
|
|
1261
1261
|
const setDidLayout = () => {
|
|
1262
1262
|
refState.current.queuedInitialLayout = true;
|
|
@@ -2512,7 +2512,7 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
|
|
|
2512
2512
|
if (index !== -1) {
|
|
2513
2513
|
const paddingBottom = stylePaddingBottom || 0;
|
|
2514
2514
|
const footerSize = peek$(ctx, "footerSize") || 0;
|
|
2515
|
-
scrollToIndex({ index, viewOffset: -paddingBottom - footerSize, ...options });
|
|
2515
|
+
scrollToIndex({ index, viewPosition: 1, viewOffset: -paddingBottom - footerSize, ...options });
|
|
2516
2516
|
}
|
|
2517
2517
|
}
|
|
2518
2518
|
};
|
package/index.mjs
CHANGED
|
@@ -1206,7 +1206,7 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
|
|
|
1206
1206
|
index,
|
|
1207
1207
|
viewOffset = 0,
|
|
1208
1208
|
animated = true,
|
|
1209
|
-
viewPosition
|
|
1209
|
+
viewPosition
|
|
1210
1210
|
}) => {
|
|
1211
1211
|
var _a;
|
|
1212
1212
|
const state = refState.current;
|
|
@@ -1235,7 +1235,7 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
|
|
|
1235
1235
|
state.minIndexSizeChanged = index;
|
|
1236
1236
|
firstIndexScrollPostion = firstIndexOffset - viewOffset + state.scrollAdjustHandler.getAppliedAdjust();
|
|
1237
1237
|
}
|
|
1238
|
-
scrollTo({ offset: firstIndexScrollPostion, animated, index, viewPosition, viewOffset });
|
|
1238
|
+
scrollTo({ offset: firstIndexScrollPostion, animated, index, viewPosition: viewPosition != null ? viewPosition : 0, viewOffset });
|
|
1239
1239
|
};
|
|
1240
1240
|
const setDidLayout = () => {
|
|
1241
1241
|
refState.current.queuedInitialLayout = true;
|
|
@@ -2491,7 +2491,7 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
|
|
|
2491
2491
|
if (index !== -1) {
|
|
2492
2492
|
const paddingBottom = stylePaddingBottom || 0;
|
|
2493
2493
|
const footerSize = peek$(ctx, "footerSize") || 0;
|
|
2494
|
-
scrollToIndex({ index, viewOffset: -paddingBottom - footerSize, ...options });
|
|
2494
|
+
scrollToIndex({ index, viewPosition: 1, viewOffset: -paddingBottom - footerSize, ...options });
|
|
2495
2495
|
}
|
|
2496
2496
|
}
|
|
2497
2497
|
};
|
package/package.json
CHANGED