@legendapp/list 1.0.18 → 1.0.19

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 CHANGED
@@ -1,3 +1,6 @@
1
+ ## 1.0.19
2
+ - Fix: scrollToEnd not including footerSize
3
+
1
4
  ## 1.0.18
2
5
  - Feat: Add a useListScrollSize hook
3
6
  - Fix: Support renderItem being a function component
package/index.js CHANGED
@@ -2493,7 +2493,8 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
2493
2493
  const index = data.length - 1;
2494
2494
  if (index !== -1) {
2495
2495
  const paddingBottom = stylePaddingBottom || 0;
2496
- scrollToIndex({ index, viewOffset: -paddingBottom, ...options });
2496
+ const footerSize = peek$(ctx, "footerSize") || 0;
2497
+ scrollToIndex({ index, viewOffset: -paddingBottom - footerSize, ...options });
2497
2498
  }
2498
2499
  }
2499
2500
  };
package/index.mjs CHANGED
@@ -2472,7 +2472,8 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
2472
2472
  const index = data.length - 1;
2473
2473
  if (index !== -1) {
2474
2474
  const paddingBottom = stylePaddingBottom || 0;
2475
- scrollToIndex({ index, viewOffset: -paddingBottom, ...options });
2475
+ const footerSize = peek$(ctx, "footerSize") || 0;
2476
+ scrollToIndex({ index, viewOffset: -paddingBottom - footerSize, ...options });
2476
2477
  }
2477
2478
  }
2478
2479
  };
@@ -1,16 +1,147 @@
1
+ import * as react_native_reanimated_lib_typescript_layoutReanimation_animationBuilder_Keyframe from 'react-native-reanimated/lib/typescript/layoutReanimation/animationBuilder/Keyframe';
2
+ import * as react_native_reanimated from 'react-native-reanimated';
3
+ import * as _legendapp_list_reanimated from '@legendapp/list/reanimated';
1
4
  import * as _legendapp_list from '@legendapp/list';
2
5
  import { LegendListRef } from '@legendapp/list';
3
- import * as react_native_reanimated_lib_typescript_layoutReanimation_animationBuilder_Keyframe from 'react-native-reanimated/lib/typescript/layoutReanimation/animationBuilder/Keyframe';
4
6
  import * as react_native from 'react-native';
5
7
  import { Insets } from 'react-native';
6
- import * as react_native_reanimated from 'react-native-reanimated';
7
- import * as _legendapp_list_reanimated from '@legendapp/list/reanimated';
8
8
  import * as React from 'react';
9
9
 
10
- declare const LegendList: <ItemT, ListT extends (<ItemT_1>(props: Omit<_legendapp_list_reanimated.AnimatedLegendListPropsBase<ItemT_1>, "refLegendList"> & {
10
+ declare const LegendList: <ItemT, ListT extends (<T>(props: Omit<Omit<react_native.ScrollViewProps, "scrollEventThrottle">, "contentOffset" | "contentInset" | "maintainVisibleContentPosition" | "stickyHeaderIndices" | "removeClippedSubviews"> & {
11
+ alignItemsAtEnd?: boolean;
12
+ columnWrapperStyle?: _legendapp_list.ColumnWrapperStyle;
13
+ data: readonly T[];
14
+ drawDistance?: number;
15
+ estimatedItemSize?: number;
16
+ extraData?: any;
17
+ getEstimatedItemSize?: ((index: number, item: T) => number) | undefined;
18
+ initialContainerPoolRatio?: number | undefined;
19
+ initialScrollOffset?: number;
20
+ initialScrollIndex?: number;
21
+ ItemSeparatorComponent?: React.ComponentType<{
22
+ leadingItem: T;
23
+ }> | undefined;
24
+ keyExtractor?: ((item: T, index: number) => string) | undefined;
25
+ ListEmptyComponent?: React.ComponentType<any> | React.ReactElement | null | undefined;
26
+ ListFooterComponent?: React.ComponentType<any> | React.ReactElement | null | undefined;
27
+ ListFooterComponentStyle?: react_native.StyleProp<react_native.ViewStyle> | undefined;
28
+ ListHeaderComponent?: React.ComponentType<any> | React.ReactElement | null | undefined;
29
+ ListHeaderComponentStyle?: react_native.StyleProp<react_native.ViewStyle> | undefined;
30
+ maintainScrollAtEnd?: boolean;
31
+ maintainScrollAtEndThreshold?: number;
32
+ maintainVisibleContentPosition?: boolean;
33
+ numColumns?: number;
34
+ onEndReached?: ((info: {
35
+ distanceFromEnd: number;
36
+ }) => void) | null | undefined;
37
+ onEndReachedThreshold?: number | null | undefined;
38
+ onItemSizeChanged?: ((info: {
39
+ size: number;
40
+ previous: number;
41
+ index: number;
42
+ itemKey: string;
43
+ itemData: T;
44
+ }) => void) | undefined;
45
+ onRefresh?: () => void;
46
+ onStartReached?: ((info: {
47
+ distanceFromStart: number;
48
+ }) => void) | null | undefined;
49
+ onStartReachedThreshold?: number | null | undefined;
50
+ onViewableItemsChanged?: _legendapp_list.OnViewableItemsChanged | undefined;
51
+ progressViewOffset?: number;
52
+ recycleItems?: boolean;
53
+ refScrollView?: React.Ref<react_native.ScrollView>;
54
+ refreshing?: boolean;
55
+ renderItem?: ((props: _legendapp_list.LegendListRenderItemProps<T>) => React.ReactNode) | React.ComponentType<_legendapp_list.LegendListRenderItemProps<T>> | undefined;
56
+ renderScrollComponent?: (props: react_native.ScrollViewProps) => React.ReactElement<react_native.ScrollViewProps>;
57
+ suggestEstimatedItemSize?: boolean;
58
+ viewabilityConfig?: _legendapp_list.ViewabilityConfig;
59
+ viewabilityConfigCallbackPairs?: _legendapp_list.ViewabilityConfigCallbackPairs | undefined;
60
+ waitForInitialLayout?: boolean;
61
+ onLoad?: (info: {
62
+ elapsedTimeInMs: number;
63
+ }) => void;
64
+ } & React.RefAttributes<LegendListRef>) => React.ReactNode) | react_native.Animated.AnimatedComponent<(<T>(props: Omit<Omit<react_native.ScrollViewProps, "scrollEventThrottle">, "contentOffset" | "contentInset" | "maintainVisibleContentPosition" | "stickyHeaderIndices" | "removeClippedSubviews"> & {
65
+ alignItemsAtEnd?: boolean;
66
+ columnWrapperStyle?: _legendapp_list.ColumnWrapperStyle;
67
+ data: readonly T[];
68
+ drawDistance?: number;
69
+ estimatedItemSize?: number;
70
+ extraData?: any;
71
+ getEstimatedItemSize?: ((index: number, item: T) => number) | undefined;
72
+ initialContainerPoolRatio?: number | undefined;
73
+ initialScrollOffset?: number;
74
+ initialScrollIndex?: number;
75
+ ItemSeparatorComponent?: React.ComponentType<{
76
+ leadingItem: T;
77
+ }> | undefined;
78
+ keyExtractor?: ((item: T, index: number) => string) | undefined;
79
+ ListEmptyComponent?: React.ComponentType<any> | React.ReactElement | null | undefined;
80
+ ListFooterComponent?: React.ComponentType<any> | React.ReactElement | null | undefined;
81
+ ListFooterComponentStyle?: react_native.StyleProp<react_native.ViewStyle> | undefined;
82
+ ListHeaderComponent?: React.ComponentType<any> | React.ReactElement | null | undefined;
83
+ ListHeaderComponentStyle?: react_native.StyleProp<react_native.ViewStyle> | undefined;
84
+ maintainScrollAtEnd?: boolean;
85
+ maintainScrollAtEndThreshold?: number;
86
+ maintainVisibleContentPosition?: boolean;
87
+ numColumns?: number;
88
+ onEndReached?: ((info: {
89
+ distanceFromEnd: number;
90
+ }) => void) | null | undefined;
91
+ onEndReachedThreshold?: number | null | undefined;
92
+ onItemSizeChanged?: ((info: {
93
+ size: number;
94
+ previous: number;
95
+ index: number;
96
+ itemKey: string;
97
+ itemData: T;
98
+ }) => void) | undefined;
99
+ onRefresh?: () => void;
100
+ onStartReached?: ((info: {
101
+ distanceFromStart: number;
102
+ }) => void) | null | undefined;
103
+ onStartReachedThreshold?: number | null | undefined;
104
+ onViewableItemsChanged?: _legendapp_list.OnViewableItemsChanged | undefined;
105
+ progressViewOffset?: number;
106
+ recycleItems?: boolean;
107
+ refScrollView?: React.Ref<react_native.ScrollView>;
108
+ refreshing?: boolean;
109
+ renderItem?: ((props: _legendapp_list.LegendListRenderItemProps<T>) => React.ReactNode) | React.ComponentType<_legendapp_list.LegendListRenderItemProps<T>> | undefined;
110
+ renderScrollComponent?: (props: react_native.ScrollViewProps) => React.ReactElement<react_native.ScrollViewProps>;
111
+ suggestEstimatedItemSize?: boolean;
112
+ viewabilityConfig?: _legendapp_list.ViewabilityConfig;
113
+ viewabilityConfigCallbackPairs?: _legendapp_list.ViewabilityConfigCallbackPairs | undefined;
114
+ waitForInitialLayout?: boolean;
115
+ onLoad?: (info: {
116
+ elapsedTimeInMs: number;
117
+ }) => void;
118
+ } & React.RefAttributes<LegendListRef>) => React.ReactNode)> | (<ItemT_1>(props: Omit<_legendapp_list_reanimated.AnimatedLegendListPropsBase<ItemT_1>, "refLegendList"> & {
11
119
  getEstimatedItemSize?: ((index: number, item: ItemT_1) => number) | undefined;
120
+ ItemSeparatorComponent?: React.ComponentType<{
121
+ leadingItem: ItemT_1;
122
+ }> | undefined;
12
123
  keyExtractor?: ((item: ItemT_1, index: number) => string) | undefined;
124
+ onItemSizeChanged?: ((info: {
125
+ size: number;
126
+ previous: number;
127
+ index: number;
128
+ itemKey: string;
129
+ itemData: ItemT_1;
130
+ }) => void) | undefined;
131
+ renderItem?: ((props: _legendapp_list.LegendListRenderItemProps<ItemT_1>) => React.ReactNode) | React.ComponentType<_legendapp_list.LegendListRenderItemProps<ItemT_1>> | undefined;
13
132
  animatedProps?: Partial<{
133
+ contentOffset?: react_native.PointProp | react_native_reanimated.SharedValue<react_native.PointProp | undefined> | undefined;
134
+ contentInset?: Insets | react_native_reanimated.SharedValue<Insets | undefined> | undefined;
135
+ maintainVisibleContentPosition?: {
136
+ autoscrollToTopThreshold?: number | null | undefined;
137
+ minIndexForVisible: number;
138
+ } | react_native_reanimated.SharedValue<{
139
+ autoscrollToTopThreshold?: number | null | undefined;
140
+ minIndexForVisible: number;
141
+ } | null | undefined> | null | undefined;
142
+ stickyHeaderIndices?: number[] | react_native_reanimated.SharedValue<number[] | undefined> | undefined;
143
+ removeClippedSubviews?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
144
+ scrollEventThrottle?: number | react_native_reanimated.SharedValue<number | undefined> | undefined;
14
145
  decelerationRate?: number | "fast" | "normal" | react_native_reanimated.SharedValue<number | "fast" | "normal" | undefined> | undefined;
15
146
  horizontal?: boolean | react_native_reanimated.SharedValue<boolean | null | undefined> | null | undefined;
16
147
  invertStickyHeaders?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
@@ -24,7 +155,6 @@ declare const LegendList: <ItemT, ListT extends (<ItemT_1>(props: Omit<_legendap
24
155
  onMomentumScrollBegin?: ((event: react_native.NativeSyntheticEvent<react_native.NativeScrollEvent>) => void) | react_native_reanimated.SharedValue<((event: react_native.NativeSyntheticEvent<react_native.NativeScrollEvent>) => void) | undefined> | undefined;
25
156
  pagingEnabled?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
26
157
  scrollEnabled?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
27
- removeClippedSubviews?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
28
158
  showsHorizontalScrollIndicator?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
29
159
  showsVerticalScrollIndicator?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
30
160
  stickyHeaderHiddenOnScroll?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
@@ -33,7 +163,6 @@ declare const LegendList: <ItemT, ListT extends (<ItemT_1>(props: Omit<_legendap
33
163
  snapToOffsets?: number[] | react_native_reanimated.SharedValue<number[] | undefined> | undefined;
34
164
  snapToStart?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
35
165
  snapToEnd?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
36
- stickyHeaderIndices?: number[] | react_native_reanimated.SharedValue<number[] | undefined> | undefined;
37
166
  disableIntervalMomentum?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
38
167
  disableScrollViewPanResponder?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
39
168
  StickyHeaderComponent?: React.ComponentType<any> | react_native_reanimated.SharedValue<React.ComponentType<any> | undefined> | undefined;
@@ -137,26 +266,16 @@ declare const LegendList: <ItemT, ListT extends (<ItemT_1>(props: Omit<_legendap
137
266
  bouncesZoom?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
138
267
  canCancelContentTouches?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
139
268
  centerContent?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
140
- contentInset?: Insets | react_native_reanimated.SharedValue<Insets | undefined> | undefined;
141
- contentOffset?: react_native.PointProp | react_native_reanimated.SharedValue<react_native.PointProp | undefined> | undefined;
142
269
  contentInsetAdjustmentBehavior?: "always" | "never" | "automatic" | "scrollableAxes" | react_native_reanimated.SharedValue<"always" | "never" | "automatic" | "scrollableAxes" | undefined> | undefined;
143
270
  directionalLockEnabled?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
144
- maintainVisibleContentPosition?: {
145
- autoscrollToTopThreshold?: number | null | undefined;
146
- minIndexForVisible: number;
147
- } | react_native_reanimated.SharedValue<{
148
- autoscrollToTopThreshold?: number | null | undefined;
149
- minIndexForVisible: number;
150
- } | null | undefined> | null | undefined;
151
271
  maximumZoomScale?: number | react_native_reanimated.SharedValue<number | undefined> | undefined;
152
272
  minimumZoomScale?: number | react_native_reanimated.SharedValue<number | undefined> | undefined;
153
273
  onScrollAnimationEnd?: (() => void) | react_native_reanimated.SharedValue<(() => void) | undefined> | undefined;
154
274
  pinchGestureEnabled?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
155
- scrollEventThrottle?: number | react_native_reanimated.SharedValue<number | undefined> | undefined;
156
275
  scrollIndicatorInsets?: Insets | react_native_reanimated.SharedValue<Insets | undefined> | undefined;
157
276
  scrollToOverflowEnabled?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
158
277
  scrollsToTop?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
159
- snapToAlignment?: "center" | "start" | "end" | react_native_reanimated.SharedValue<"center" | "start" | "end" | undefined> | undefined;
278
+ snapToAlignment?: "end" | "start" | "center" | react_native_reanimated.SharedValue<"end" | "start" | "center" | undefined> | undefined;
160
279
  onScrollToTop?: ((event: react_native.NativeSyntheticEvent<react_native.NativeScrollEvent>) => void) | react_native_reanimated.SharedValue<((event: react_native.NativeSyntheticEvent<react_native.NativeScrollEvent>) => void) | undefined> | undefined;
161
280
  zoomScale?: number | react_native_reanimated.SharedValue<number | undefined> | undefined;
162
281
  endFillColor?: react_native.ColorValue | react_native_reanimated.SharedValue<react_native.ColorValue | undefined> | undefined;
@@ -166,8 +285,8 @@ declare const LegendList: <ItemT, ListT extends (<ItemT_1>(props: Omit<_legendap
166
285
  fadingEdgeLength?: number | react_native_reanimated.SharedValue<number | undefined> | undefined;
167
286
  persistentScrollbar?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
168
287
  } & {
169
- style?: react_native.StyleProp<react_native_reanimated.AnimatedStyle<react_native.StyleProp<react_native.ViewStyle>>>;
170
288
  contentContainerStyle?: react_native.StyleProp<react_native_reanimated.AnimatedStyle<react_native.StyleProp<react_native.ViewStyle>>>;
289
+ style?: react_native.StyleProp<react_native_reanimated.AnimatedStyle<react_native.StyleProp<react_native.ViewStyle>>>;
171
290
  indicatorStyle?: react_native.StyleProp<react_native_reanimated.AnimatedStyle<"default" | "black" | "white" | undefined>>;
172
291
  } & {
173
292
  layout?: react_native_reanimated.BaseAnimationBuilder | react_native_reanimated.LayoutAnimationFunction | typeof react_native_reanimated.BaseAnimationBuilder;
@@ -177,128 +296,9 @@ declare const LegendList: <ItemT, ListT extends (<ItemT_1>(props: Omit<_legendap
177
296
  sharedTransitionTag?: string;
178
297
  sharedTransitionStyle?: react_native_reanimated.SharedTransition;
179
298
  }> | undefined;
180
- renderItem?: ((props: _legendapp_list.LegendListRenderItemProps<ItemT_1>) => React.ReactNode) | React.ComponentType<_legendapp_list.LegendListRenderItemProps<ItemT_1>> | undefined;
181
- onItemSizeChanged?: ((info: {
182
- size: number;
183
- previous: number;
184
- index: number;
185
- itemKey: string;
186
- itemData: ItemT_1;
187
- }) => void) | undefined;
188
- ItemSeparatorComponent?: React.ComponentType<{
189
- leadingItem: ItemT_1;
190
- }> | undefined;
191
299
  } & {
192
300
  ref?: React.Ref<LegendListRef>;
193
- }) => React.ReactElement | null) | (<T>(props: Omit<Omit<react_native.ScrollViewProps, "scrollEventThrottle">, "removeClippedSubviews" | "stickyHeaderIndices" | "contentInset" | "contentOffset" | "maintainVisibleContentPosition"> & {
194
- alignItemsAtEnd?: boolean;
195
- columnWrapperStyle?: _legendapp_list.ColumnWrapperStyle;
196
- data: readonly T[];
197
- drawDistance?: number;
198
- estimatedItemSize?: number;
199
- extraData?: any;
200
- getEstimatedItemSize?: ((index: number, item: T) => number) | undefined;
201
- initialContainerPoolRatio?: number | undefined;
202
- initialScrollOffset?: number;
203
- initialScrollIndex?: number;
204
- ItemSeparatorComponent?: React.ComponentType<{
205
- leadingItem: T;
206
- }> | undefined;
207
- keyExtractor?: ((item: T, index: number) => string) | undefined;
208
- ListEmptyComponent?: React.ComponentType<any> | React.ReactElement | null | undefined;
209
- ListFooterComponent?: React.ComponentType<any> | React.ReactElement | null | undefined;
210
- ListFooterComponentStyle?: react_native.StyleProp<react_native.ViewStyle> | undefined;
211
- ListHeaderComponent?: React.ComponentType<any> | React.ReactElement | null | undefined;
212
- ListHeaderComponentStyle?: react_native.StyleProp<react_native.ViewStyle> | undefined;
213
- maintainScrollAtEnd?: boolean;
214
- maintainScrollAtEndThreshold?: number;
215
- maintainVisibleContentPosition?: boolean;
216
- numColumns?: number;
217
- onEndReached?: ((info: {
218
- distanceFromEnd: number;
219
- }) => void) | null | undefined;
220
- onEndReachedThreshold?: number | null | undefined;
221
- onItemSizeChanged?: ((info: {
222
- size: number;
223
- previous: number;
224
- index: number;
225
- itemKey: string;
226
- itemData: T;
227
- }) => void) | undefined;
228
- onRefresh?: () => void;
229
- onStartReached?: ((info: {
230
- distanceFromStart: number;
231
- }) => void) | null | undefined;
232
- onStartReachedThreshold?: number | null | undefined;
233
- onViewableItemsChanged?: _legendapp_list.OnViewableItemsChanged | undefined;
234
- progressViewOffset?: number;
235
- recycleItems?: boolean;
236
- refScrollView?: React.Ref<react_native.ScrollView>;
237
- refreshing?: boolean;
238
- renderItem?: ((props: _legendapp_list.LegendListRenderItemProps<T>) => React.ReactNode) | React.ComponentType<_legendapp_list.LegendListRenderItemProps<T>> | undefined;
239
- renderScrollComponent?: (props: react_native.ScrollViewProps) => React.ReactElement<react_native.ScrollViewProps>;
240
- suggestEstimatedItemSize?: boolean;
241
- viewabilityConfig?: _legendapp_list.ViewabilityConfig;
242
- viewabilityConfigCallbackPairs?: _legendapp_list.ViewabilityConfigCallbackPairs | undefined;
243
- waitForInitialLayout?: boolean;
244
- onLoad?: (info: {
245
- elapsedTimeInMs: number;
246
- }) => void;
247
- } & React.RefAttributes<LegendListRef>) => React.ReactNode) | react_native.Animated.AnimatedComponent<(<T>(props: Omit<Omit<react_native.ScrollViewProps, "scrollEventThrottle">, "removeClippedSubviews" | "stickyHeaderIndices" | "contentInset" | "contentOffset" | "maintainVisibleContentPosition"> & {
248
- alignItemsAtEnd?: boolean;
249
- columnWrapperStyle?: _legendapp_list.ColumnWrapperStyle;
250
- data: readonly T[];
251
- drawDistance?: number;
252
- estimatedItemSize?: number;
253
- extraData?: any;
254
- getEstimatedItemSize?: ((index: number, item: T) => number) | undefined;
255
- initialContainerPoolRatio?: number | undefined;
256
- initialScrollOffset?: number;
257
- initialScrollIndex?: number;
258
- ItemSeparatorComponent?: React.ComponentType<{
259
- leadingItem: T;
260
- }> | undefined;
261
- keyExtractor?: ((item: T, index: number) => string) | undefined;
262
- ListEmptyComponent?: React.ComponentType<any> | React.ReactElement | null | undefined;
263
- ListFooterComponent?: React.ComponentType<any> | React.ReactElement | null | undefined;
264
- ListFooterComponentStyle?: react_native.StyleProp<react_native.ViewStyle> | undefined;
265
- ListHeaderComponent?: React.ComponentType<any> | React.ReactElement | null | undefined;
266
- ListHeaderComponentStyle?: react_native.StyleProp<react_native.ViewStyle> | undefined;
267
- maintainScrollAtEnd?: boolean;
268
- maintainScrollAtEndThreshold?: number;
269
- maintainVisibleContentPosition?: boolean;
270
- numColumns?: number;
271
- onEndReached?: ((info: {
272
- distanceFromEnd: number;
273
- }) => void) | null | undefined;
274
- onEndReachedThreshold?: number | null | undefined;
275
- onItemSizeChanged?: ((info: {
276
- size: number;
277
- previous: number;
278
- index: number;
279
- itemKey: string;
280
- itemData: T;
281
- }) => void) | undefined;
282
- onRefresh?: () => void;
283
- onStartReached?: ((info: {
284
- distanceFromStart: number;
285
- }) => void) | null | undefined;
286
- onStartReachedThreshold?: number | null | undefined;
287
- onViewableItemsChanged?: _legendapp_list.OnViewableItemsChanged | undefined;
288
- progressViewOffset?: number;
289
- recycleItems?: boolean;
290
- refScrollView?: React.Ref<react_native.ScrollView>;
291
- refreshing?: boolean;
292
- renderItem?: ((props: _legendapp_list.LegendListRenderItemProps<T>) => React.ReactNode) | React.ComponentType<_legendapp_list.LegendListRenderItemProps<T>> | undefined;
293
- renderScrollComponent?: (props: react_native.ScrollViewProps) => React.ReactElement<react_native.ScrollViewProps>;
294
- suggestEstimatedItemSize?: boolean;
295
- viewabilityConfig?: _legendapp_list.ViewabilityConfig;
296
- viewabilityConfigCallbackPairs?: _legendapp_list.ViewabilityConfigCallbackPairs | undefined;
297
- waitForInitialLayout?: boolean;
298
- onLoad?: (info: {
299
- elapsedTimeInMs: number;
300
- }) => void;
301
- } & React.RefAttributes<LegendListRef>) => React.ReactNode)> = <T>(props: Omit<Omit<react_native.ScrollViewProps, "scrollEventThrottle">, "removeClippedSubviews" | "stickyHeaderIndices" | "contentInset" | "contentOffset" | "maintainVisibleContentPosition"> & {
301
+ }) => React.ReactElement | null) = <T>(props: Omit<Omit<react_native.ScrollViewProps, "scrollEventThrottle">, "contentOffset" | "contentInset" | "maintainVisibleContentPosition" | "stickyHeaderIndices" | "removeClippedSubviews"> & {
302
302
  alignItemsAtEnd?: boolean;
303
303
  columnWrapperStyle?: _legendapp_list.ColumnWrapperStyle;
304
304
  data: readonly T[];
@@ -352,7 +352,7 @@ declare const LegendList: <ItemT, ListT extends (<ItemT_1>(props: Omit<_legendap
352
352
  onLoad?: (info: {
353
353
  elapsedTimeInMs: number;
354
354
  }) => void;
355
- } & React.RefAttributes<LegendListRef>) => React.ReactNode>(props: Omit<Omit<react_native.ScrollViewProps, "scrollEventThrottle">, "removeClippedSubviews" | "stickyHeaderIndices" | "contentInset" | "contentOffset" | "maintainVisibleContentPosition"> & {
355
+ } & React.RefAttributes<LegendListRef>) => React.ReactNode>(props: Omit<Omit<react_native.ScrollViewProps, "scrollEventThrottle">, "contentOffset" | "contentInset" | "maintainVisibleContentPosition" | "stickyHeaderIndices" | "removeClippedSubviews"> & {
356
356
  alignItemsAtEnd?: boolean;
357
357
  columnWrapperStyle?: _legendapp_list.ColumnWrapperStyle;
358
358
  data: readonly ItemT[];
@@ -1,16 +1,147 @@
1
+ import * as react_native_reanimated_lib_typescript_layoutReanimation_animationBuilder_Keyframe from 'react-native-reanimated/lib/typescript/layoutReanimation/animationBuilder/Keyframe';
2
+ import * as react_native_reanimated from 'react-native-reanimated';
3
+ import * as _legendapp_list_reanimated from '@legendapp/list/reanimated';
1
4
  import * as _legendapp_list from '@legendapp/list';
2
5
  import { LegendListRef } from '@legendapp/list';
3
- import * as react_native_reanimated_lib_typescript_layoutReanimation_animationBuilder_Keyframe from 'react-native-reanimated/lib/typescript/layoutReanimation/animationBuilder/Keyframe';
4
6
  import * as react_native from 'react-native';
5
7
  import { Insets } from 'react-native';
6
- import * as react_native_reanimated from 'react-native-reanimated';
7
- import * as _legendapp_list_reanimated from '@legendapp/list/reanimated';
8
8
  import * as React from 'react';
9
9
 
10
- declare const LegendList: <ItemT, ListT extends (<ItemT_1>(props: Omit<_legendapp_list_reanimated.AnimatedLegendListPropsBase<ItemT_1>, "refLegendList"> & {
10
+ declare const LegendList: <ItemT, ListT extends (<T>(props: Omit<Omit<react_native.ScrollViewProps, "scrollEventThrottle">, "contentOffset" | "contentInset" | "maintainVisibleContentPosition" | "stickyHeaderIndices" | "removeClippedSubviews"> & {
11
+ alignItemsAtEnd?: boolean;
12
+ columnWrapperStyle?: _legendapp_list.ColumnWrapperStyle;
13
+ data: readonly T[];
14
+ drawDistance?: number;
15
+ estimatedItemSize?: number;
16
+ extraData?: any;
17
+ getEstimatedItemSize?: ((index: number, item: T) => number) | undefined;
18
+ initialContainerPoolRatio?: number | undefined;
19
+ initialScrollOffset?: number;
20
+ initialScrollIndex?: number;
21
+ ItemSeparatorComponent?: React.ComponentType<{
22
+ leadingItem: T;
23
+ }> | undefined;
24
+ keyExtractor?: ((item: T, index: number) => string) | undefined;
25
+ ListEmptyComponent?: React.ComponentType<any> | React.ReactElement | null | undefined;
26
+ ListFooterComponent?: React.ComponentType<any> | React.ReactElement | null | undefined;
27
+ ListFooterComponentStyle?: react_native.StyleProp<react_native.ViewStyle> | undefined;
28
+ ListHeaderComponent?: React.ComponentType<any> | React.ReactElement | null | undefined;
29
+ ListHeaderComponentStyle?: react_native.StyleProp<react_native.ViewStyle> | undefined;
30
+ maintainScrollAtEnd?: boolean;
31
+ maintainScrollAtEndThreshold?: number;
32
+ maintainVisibleContentPosition?: boolean;
33
+ numColumns?: number;
34
+ onEndReached?: ((info: {
35
+ distanceFromEnd: number;
36
+ }) => void) | null | undefined;
37
+ onEndReachedThreshold?: number | null | undefined;
38
+ onItemSizeChanged?: ((info: {
39
+ size: number;
40
+ previous: number;
41
+ index: number;
42
+ itemKey: string;
43
+ itemData: T;
44
+ }) => void) | undefined;
45
+ onRefresh?: () => void;
46
+ onStartReached?: ((info: {
47
+ distanceFromStart: number;
48
+ }) => void) | null | undefined;
49
+ onStartReachedThreshold?: number | null | undefined;
50
+ onViewableItemsChanged?: _legendapp_list.OnViewableItemsChanged | undefined;
51
+ progressViewOffset?: number;
52
+ recycleItems?: boolean;
53
+ refScrollView?: React.Ref<react_native.ScrollView>;
54
+ refreshing?: boolean;
55
+ renderItem?: ((props: _legendapp_list.LegendListRenderItemProps<T>) => React.ReactNode) | React.ComponentType<_legendapp_list.LegendListRenderItemProps<T>> | undefined;
56
+ renderScrollComponent?: (props: react_native.ScrollViewProps) => React.ReactElement<react_native.ScrollViewProps>;
57
+ suggestEstimatedItemSize?: boolean;
58
+ viewabilityConfig?: _legendapp_list.ViewabilityConfig;
59
+ viewabilityConfigCallbackPairs?: _legendapp_list.ViewabilityConfigCallbackPairs | undefined;
60
+ waitForInitialLayout?: boolean;
61
+ onLoad?: (info: {
62
+ elapsedTimeInMs: number;
63
+ }) => void;
64
+ } & React.RefAttributes<LegendListRef>) => React.ReactNode) | react_native.Animated.AnimatedComponent<(<T>(props: Omit<Omit<react_native.ScrollViewProps, "scrollEventThrottle">, "contentOffset" | "contentInset" | "maintainVisibleContentPosition" | "stickyHeaderIndices" | "removeClippedSubviews"> & {
65
+ alignItemsAtEnd?: boolean;
66
+ columnWrapperStyle?: _legendapp_list.ColumnWrapperStyle;
67
+ data: readonly T[];
68
+ drawDistance?: number;
69
+ estimatedItemSize?: number;
70
+ extraData?: any;
71
+ getEstimatedItemSize?: ((index: number, item: T) => number) | undefined;
72
+ initialContainerPoolRatio?: number | undefined;
73
+ initialScrollOffset?: number;
74
+ initialScrollIndex?: number;
75
+ ItemSeparatorComponent?: React.ComponentType<{
76
+ leadingItem: T;
77
+ }> | undefined;
78
+ keyExtractor?: ((item: T, index: number) => string) | undefined;
79
+ ListEmptyComponent?: React.ComponentType<any> | React.ReactElement | null | undefined;
80
+ ListFooterComponent?: React.ComponentType<any> | React.ReactElement | null | undefined;
81
+ ListFooterComponentStyle?: react_native.StyleProp<react_native.ViewStyle> | undefined;
82
+ ListHeaderComponent?: React.ComponentType<any> | React.ReactElement | null | undefined;
83
+ ListHeaderComponentStyle?: react_native.StyleProp<react_native.ViewStyle> | undefined;
84
+ maintainScrollAtEnd?: boolean;
85
+ maintainScrollAtEndThreshold?: number;
86
+ maintainVisibleContentPosition?: boolean;
87
+ numColumns?: number;
88
+ onEndReached?: ((info: {
89
+ distanceFromEnd: number;
90
+ }) => void) | null | undefined;
91
+ onEndReachedThreshold?: number | null | undefined;
92
+ onItemSizeChanged?: ((info: {
93
+ size: number;
94
+ previous: number;
95
+ index: number;
96
+ itemKey: string;
97
+ itemData: T;
98
+ }) => void) | undefined;
99
+ onRefresh?: () => void;
100
+ onStartReached?: ((info: {
101
+ distanceFromStart: number;
102
+ }) => void) | null | undefined;
103
+ onStartReachedThreshold?: number | null | undefined;
104
+ onViewableItemsChanged?: _legendapp_list.OnViewableItemsChanged | undefined;
105
+ progressViewOffset?: number;
106
+ recycleItems?: boolean;
107
+ refScrollView?: React.Ref<react_native.ScrollView>;
108
+ refreshing?: boolean;
109
+ renderItem?: ((props: _legendapp_list.LegendListRenderItemProps<T>) => React.ReactNode) | React.ComponentType<_legendapp_list.LegendListRenderItemProps<T>> | undefined;
110
+ renderScrollComponent?: (props: react_native.ScrollViewProps) => React.ReactElement<react_native.ScrollViewProps>;
111
+ suggestEstimatedItemSize?: boolean;
112
+ viewabilityConfig?: _legendapp_list.ViewabilityConfig;
113
+ viewabilityConfigCallbackPairs?: _legendapp_list.ViewabilityConfigCallbackPairs | undefined;
114
+ waitForInitialLayout?: boolean;
115
+ onLoad?: (info: {
116
+ elapsedTimeInMs: number;
117
+ }) => void;
118
+ } & React.RefAttributes<LegendListRef>) => React.ReactNode)> | (<ItemT_1>(props: Omit<_legendapp_list_reanimated.AnimatedLegendListPropsBase<ItemT_1>, "refLegendList"> & {
11
119
  getEstimatedItemSize?: ((index: number, item: ItemT_1) => number) | undefined;
120
+ ItemSeparatorComponent?: React.ComponentType<{
121
+ leadingItem: ItemT_1;
122
+ }> | undefined;
12
123
  keyExtractor?: ((item: ItemT_1, index: number) => string) | undefined;
124
+ onItemSizeChanged?: ((info: {
125
+ size: number;
126
+ previous: number;
127
+ index: number;
128
+ itemKey: string;
129
+ itemData: ItemT_1;
130
+ }) => void) | undefined;
131
+ renderItem?: ((props: _legendapp_list.LegendListRenderItemProps<ItemT_1>) => React.ReactNode) | React.ComponentType<_legendapp_list.LegendListRenderItemProps<ItemT_1>> | undefined;
13
132
  animatedProps?: Partial<{
133
+ contentOffset?: react_native.PointProp | react_native_reanimated.SharedValue<react_native.PointProp | undefined> | undefined;
134
+ contentInset?: Insets | react_native_reanimated.SharedValue<Insets | undefined> | undefined;
135
+ maintainVisibleContentPosition?: {
136
+ autoscrollToTopThreshold?: number | null | undefined;
137
+ minIndexForVisible: number;
138
+ } | react_native_reanimated.SharedValue<{
139
+ autoscrollToTopThreshold?: number | null | undefined;
140
+ minIndexForVisible: number;
141
+ } | null | undefined> | null | undefined;
142
+ stickyHeaderIndices?: number[] | react_native_reanimated.SharedValue<number[] | undefined> | undefined;
143
+ removeClippedSubviews?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
144
+ scrollEventThrottle?: number | react_native_reanimated.SharedValue<number | undefined> | undefined;
14
145
  decelerationRate?: number | "fast" | "normal" | react_native_reanimated.SharedValue<number | "fast" | "normal" | undefined> | undefined;
15
146
  horizontal?: boolean | react_native_reanimated.SharedValue<boolean | null | undefined> | null | undefined;
16
147
  invertStickyHeaders?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
@@ -24,7 +155,6 @@ declare const LegendList: <ItemT, ListT extends (<ItemT_1>(props: Omit<_legendap
24
155
  onMomentumScrollBegin?: ((event: react_native.NativeSyntheticEvent<react_native.NativeScrollEvent>) => void) | react_native_reanimated.SharedValue<((event: react_native.NativeSyntheticEvent<react_native.NativeScrollEvent>) => void) | undefined> | undefined;
25
156
  pagingEnabled?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
26
157
  scrollEnabled?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
27
- removeClippedSubviews?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
28
158
  showsHorizontalScrollIndicator?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
29
159
  showsVerticalScrollIndicator?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
30
160
  stickyHeaderHiddenOnScroll?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
@@ -33,7 +163,6 @@ declare const LegendList: <ItemT, ListT extends (<ItemT_1>(props: Omit<_legendap
33
163
  snapToOffsets?: number[] | react_native_reanimated.SharedValue<number[] | undefined> | undefined;
34
164
  snapToStart?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
35
165
  snapToEnd?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
36
- stickyHeaderIndices?: number[] | react_native_reanimated.SharedValue<number[] | undefined> | undefined;
37
166
  disableIntervalMomentum?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
38
167
  disableScrollViewPanResponder?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
39
168
  StickyHeaderComponent?: React.ComponentType<any> | react_native_reanimated.SharedValue<React.ComponentType<any> | undefined> | undefined;
@@ -137,26 +266,16 @@ declare const LegendList: <ItemT, ListT extends (<ItemT_1>(props: Omit<_legendap
137
266
  bouncesZoom?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
138
267
  canCancelContentTouches?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
139
268
  centerContent?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
140
- contentInset?: Insets | react_native_reanimated.SharedValue<Insets | undefined> | undefined;
141
- contentOffset?: react_native.PointProp | react_native_reanimated.SharedValue<react_native.PointProp | undefined> | undefined;
142
269
  contentInsetAdjustmentBehavior?: "always" | "never" | "automatic" | "scrollableAxes" | react_native_reanimated.SharedValue<"always" | "never" | "automatic" | "scrollableAxes" | undefined> | undefined;
143
270
  directionalLockEnabled?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
144
- maintainVisibleContentPosition?: {
145
- autoscrollToTopThreshold?: number | null | undefined;
146
- minIndexForVisible: number;
147
- } | react_native_reanimated.SharedValue<{
148
- autoscrollToTopThreshold?: number | null | undefined;
149
- minIndexForVisible: number;
150
- } | null | undefined> | null | undefined;
151
271
  maximumZoomScale?: number | react_native_reanimated.SharedValue<number | undefined> | undefined;
152
272
  minimumZoomScale?: number | react_native_reanimated.SharedValue<number | undefined> | undefined;
153
273
  onScrollAnimationEnd?: (() => void) | react_native_reanimated.SharedValue<(() => void) | undefined> | undefined;
154
274
  pinchGestureEnabled?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
155
- scrollEventThrottle?: number | react_native_reanimated.SharedValue<number | undefined> | undefined;
156
275
  scrollIndicatorInsets?: Insets | react_native_reanimated.SharedValue<Insets | undefined> | undefined;
157
276
  scrollToOverflowEnabled?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
158
277
  scrollsToTop?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
159
- snapToAlignment?: "center" | "start" | "end" | react_native_reanimated.SharedValue<"center" | "start" | "end" | undefined> | undefined;
278
+ snapToAlignment?: "end" | "start" | "center" | react_native_reanimated.SharedValue<"end" | "start" | "center" | undefined> | undefined;
160
279
  onScrollToTop?: ((event: react_native.NativeSyntheticEvent<react_native.NativeScrollEvent>) => void) | react_native_reanimated.SharedValue<((event: react_native.NativeSyntheticEvent<react_native.NativeScrollEvent>) => void) | undefined> | undefined;
161
280
  zoomScale?: number | react_native_reanimated.SharedValue<number | undefined> | undefined;
162
281
  endFillColor?: react_native.ColorValue | react_native_reanimated.SharedValue<react_native.ColorValue | undefined> | undefined;
@@ -166,8 +285,8 @@ declare const LegendList: <ItemT, ListT extends (<ItemT_1>(props: Omit<_legendap
166
285
  fadingEdgeLength?: number | react_native_reanimated.SharedValue<number | undefined> | undefined;
167
286
  persistentScrollbar?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
168
287
  } & {
169
- style?: react_native.StyleProp<react_native_reanimated.AnimatedStyle<react_native.StyleProp<react_native.ViewStyle>>>;
170
288
  contentContainerStyle?: react_native.StyleProp<react_native_reanimated.AnimatedStyle<react_native.StyleProp<react_native.ViewStyle>>>;
289
+ style?: react_native.StyleProp<react_native_reanimated.AnimatedStyle<react_native.StyleProp<react_native.ViewStyle>>>;
171
290
  indicatorStyle?: react_native.StyleProp<react_native_reanimated.AnimatedStyle<"default" | "black" | "white" | undefined>>;
172
291
  } & {
173
292
  layout?: react_native_reanimated.BaseAnimationBuilder | react_native_reanimated.LayoutAnimationFunction | typeof react_native_reanimated.BaseAnimationBuilder;
@@ -177,128 +296,9 @@ declare const LegendList: <ItemT, ListT extends (<ItemT_1>(props: Omit<_legendap
177
296
  sharedTransitionTag?: string;
178
297
  sharedTransitionStyle?: react_native_reanimated.SharedTransition;
179
298
  }> | undefined;
180
- renderItem?: ((props: _legendapp_list.LegendListRenderItemProps<ItemT_1>) => React.ReactNode) | React.ComponentType<_legendapp_list.LegendListRenderItemProps<ItemT_1>> | undefined;
181
- onItemSizeChanged?: ((info: {
182
- size: number;
183
- previous: number;
184
- index: number;
185
- itemKey: string;
186
- itemData: ItemT_1;
187
- }) => void) | undefined;
188
- ItemSeparatorComponent?: React.ComponentType<{
189
- leadingItem: ItemT_1;
190
- }> | undefined;
191
299
  } & {
192
300
  ref?: React.Ref<LegendListRef>;
193
- }) => React.ReactElement | null) | (<T>(props: Omit<Omit<react_native.ScrollViewProps, "scrollEventThrottle">, "removeClippedSubviews" | "stickyHeaderIndices" | "contentInset" | "contentOffset" | "maintainVisibleContentPosition"> & {
194
- alignItemsAtEnd?: boolean;
195
- columnWrapperStyle?: _legendapp_list.ColumnWrapperStyle;
196
- data: readonly T[];
197
- drawDistance?: number;
198
- estimatedItemSize?: number;
199
- extraData?: any;
200
- getEstimatedItemSize?: ((index: number, item: T) => number) | undefined;
201
- initialContainerPoolRatio?: number | undefined;
202
- initialScrollOffset?: number;
203
- initialScrollIndex?: number;
204
- ItemSeparatorComponent?: React.ComponentType<{
205
- leadingItem: T;
206
- }> | undefined;
207
- keyExtractor?: ((item: T, index: number) => string) | undefined;
208
- ListEmptyComponent?: React.ComponentType<any> | React.ReactElement | null | undefined;
209
- ListFooterComponent?: React.ComponentType<any> | React.ReactElement | null | undefined;
210
- ListFooterComponentStyle?: react_native.StyleProp<react_native.ViewStyle> | undefined;
211
- ListHeaderComponent?: React.ComponentType<any> | React.ReactElement | null | undefined;
212
- ListHeaderComponentStyle?: react_native.StyleProp<react_native.ViewStyle> | undefined;
213
- maintainScrollAtEnd?: boolean;
214
- maintainScrollAtEndThreshold?: number;
215
- maintainVisibleContentPosition?: boolean;
216
- numColumns?: number;
217
- onEndReached?: ((info: {
218
- distanceFromEnd: number;
219
- }) => void) | null | undefined;
220
- onEndReachedThreshold?: number | null | undefined;
221
- onItemSizeChanged?: ((info: {
222
- size: number;
223
- previous: number;
224
- index: number;
225
- itemKey: string;
226
- itemData: T;
227
- }) => void) | undefined;
228
- onRefresh?: () => void;
229
- onStartReached?: ((info: {
230
- distanceFromStart: number;
231
- }) => void) | null | undefined;
232
- onStartReachedThreshold?: number | null | undefined;
233
- onViewableItemsChanged?: _legendapp_list.OnViewableItemsChanged | undefined;
234
- progressViewOffset?: number;
235
- recycleItems?: boolean;
236
- refScrollView?: React.Ref<react_native.ScrollView>;
237
- refreshing?: boolean;
238
- renderItem?: ((props: _legendapp_list.LegendListRenderItemProps<T>) => React.ReactNode) | React.ComponentType<_legendapp_list.LegendListRenderItemProps<T>> | undefined;
239
- renderScrollComponent?: (props: react_native.ScrollViewProps) => React.ReactElement<react_native.ScrollViewProps>;
240
- suggestEstimatedItemSize?: boolean;
241
- viewabilityConfig?: _legendapp_list.ViewabilityConfig;
242
- viewabilityConfigCallbackPairs?: _legendapp_list.ViewabilityConfigCallbackPairs | undefined;
243
- waitForInitialLayout?: boolean;
244
- onLoad?: (info: {
245
- elapsedTimeInMs: number;
246
- }) => void;
247
- } & React.RefAttributes<LegendListRef>) => React.ReactNode) | react_native.Animated.AnimatedComponent<(<T>(props: Omit<Omit<react_native.ScrollViewProps, "scrollEventThrottle">, "removeClippedSubviews" | "stickyHeaderIndices" | "contentInset" | "contentOffset" | "maintainVisibleContentPosition"> & {
248
- alignItemsAtEnd?: boolean;
249
- columnWrapperStyle?: _legendapp_list.ColumnWrapperStyle;
250
- data: readonly T[];
251
- drawDistance?: number;
252
- estimatedItemSize?: number;
253
- extraData?: any;
254
- getEstimatedItemSize?: ((index: number, item: T) => number) | undefined;
255
- initialContainerPoolRatio?: number | undefined;
256
- initialScrollOffset?: number;
257
- initialScrollIndex?: number;
258
- ItemSeparatorComponent?: React.ComponentType<{
259
- leadingItem: T;
260
- }> | undefined;
261
- keyExtractor?: ((item: T, index: number) => string) | undefined;
262
- ListEmptyComponent?: React.ComponentType<any> | React.ReactElement | null | undefined;
263
- ListFooterComponent?: React.ComponentType<any> | React.ReactElement | null | undefined;
264
- ListFooterComponentStyle?: react_native.StyleProp<react_native.ViewStyle> | undefined;
265
- ListHeaderComponent?: React.ComponentType<any> | React.ReactElement | null | undefined;
266
- ListHeaderComponentStyle?: react_native.StyleProp<react_native.ViewStyle> | undefined;
267
- maintainScrollAtEnd?: boolean;
268
- maintainScrollAtEndThreshold?: number;
269
- maintainVisibleContentPosition?: boolean;
270
- numColumns?: number;
271
- onEndReached?: ((info: {
272
- distanceFromEnd: number;
273
- }) => void) | null | undefined;
274
- onEndReachedThreshold?: number | null | undefined;
275
- onItemSizeChanged?: ((info: {
276
- size: number;
277
- previous: number;
278
- index: number;
279
- itemKey: string;
280
- itemData: T;
281
- }) => void) | undefined;
282
- onRefresh?: () => void;
283
- onStartReached?: ((info: {
284
- distanceFromStart: number;
285
- }) => void) | null | undefined;
286
- onStartReachedThreshold?: number | null | undefined;
287
- onViewableItemsChanged?: _legendapp_list.OnViewableItemsChanged | undefined;
288
- progressViewOffset?: number;
289
- recycleItems?: boolean;
290
- refScrollView?: React.Ref<react_native.ScrollView>;
291
- refreshing?: boolean;
292
- renderItem?: ((props: _legendapp_list.LegendListRenderItemProps<T>) => React.ReactNode) | React.ComponentType<_legendapp_list.LegendListRenderItemProps<T>> | undefined;
293
- renderScrollComponent?: (props: react_native.ScrollViewProps) => React.ReactElement<react_native.ScrollViewProps>;
294
- suggestEstimatedItemSize?: boolean;
295
- viewabilityConfig?: _legendapp_list.ViewabilityConfig;
296
- viewabilityConfigCallbackPairs?: _legendapp_list.ViewabilityConfigCallbackPairs | undefined;
297
- waitForInitialLayout?: boolean;
298
- onLoad?: (info: {
299
- elapsedTimeInMs: number;
300
- }) => void;
301
- } & React.RefAttributes<LegendListRef>) => React.ReactNode)> = <T>(props: Omit<Omit<react_native.ScrollViewProps, "scrollEventThrottle">, "removeClippedSubviews" | "stickyHeaderIndices" | "contentInset" | "contentOffset" | "maintainVisibleContentPosition"> & {
301
+ }) => React.ReactElement | null) = <T>(props: Omit<Omit<react_native.ScrollViewProps, "scrollEventThrottle">, "contentOffset" | "contentInset" | "maintainVisibleContentPosition" | "stickyHeaderIndices" | "removeClippedSubviews"> & {
302
302
  alignItemsAtEnd?: boolean;
303
303
  columnWrapperStyle?: _legendapp_list.ColumnWrapperStyle;
304
304
  data: readonly T[];
@@ -352,7 +352,7 @@ declare const LegendList: <ItemT, ListT extends (<ItemT_1>(props: Omit<_legendap
352
352
  onLoad?: (info: {
353
353
  elapsedTimeInMs: number;
354
354
  }) => void;
355
- } & React.RefAttributes<LegendListRef>) => React.ReactNode>(props: Omit<Omit<react_native.ScrollViewProps, "scrollEventThrottle">, "removeClippedSubviews" | "stickyHeaderIndices" | "contentInset" | "contentOffset" | "maintainVisibleContentPosition"> & {
355
+ } & React.RefAttributes<LegendListRef>) => React.ReactNode>(props: Omit<Omit<react_native.ScrollViewProps, "scrollEventThrottle">, "contentOffset" | "contentInset" | "maintainVisibleContentPosition" | "stickyHeaderIndices" | "removeClippedSubviews"> & {
356
356
  alignItemsAtEnd?: boolean;
357
357
  columnWrapperStyle?: _legendapp_list.ColumnWrapperStyle;
358
358
  data: readonly ItemT[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@legendapp/list",
3
- "version": "1.0.18",
3
+ "version": "1.0.19",
4
4
  "description": "Legend List is a drop-in replacement for FlatList with much better performance and supporting dynamically sized items.",
5
5
  "sideEffects": false,
6
6
  "private": false,