@legendapp/list 1.0.0-beta.49 → 1.0.0-beta.50
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/index.js +3 -1
- package/index.mjs +3 -1
- package/keyboard-controller.d.mts +129 -129
- package/keyboard-controller.d.ts +129 -129
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1913,11 +1913,13 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
|
|
|
1913
1913
|
state.minIndexSizeChanged = state.minIndexSizeChanged !== void 0 ? Math.min(state.minIndexSizeChanged, index) : index;
|
|
1914
1914
|
const prevSize = getItemSize(itemKey, index, data);
|
|
1915
1915
|
let needsCalculate = false;
|
|
1916
|
+
let needsUpdateContainersDidLayout = false;
|
|
1916
1917
|
if (state.numPendingInitialLayout > 0) {
|
|
1917
1918
|
state.numPendingInitialLayout--;
|
|
1918
1919
|
if (state.numPendingInitialLayout === 0) {
|
|
1919
1920
|
needsCalculate = true;
|
|
1920
1921
|
state.numPendingInitialLayout = -1;
|
|
1922
|
+
needsUpdateContainersDidLayout = true;
|
|
1921
1923
|
}
|
|
1922
1924
|
}
|
|
1923
1925
|
sizesKnown == null ? void 0 : sizesKnown.set(itemKey, size);
|
|
@@ -1967,7 +1969,7 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
|
|
|
1967
1969
|
}
|
|
1968
1970
|
}
|
|
1969
1971
|
const isInView = index >= startBuffered && index <= endBuffered;
|
|
1970
|
-
if (!fromFixGaps && needsCalculate && isInView) {
|
|
1972
|
+
if (needsUpdateContainersDidLayout || !fromFixGaps && needsCalculate && isInView) {
|
|
1971
1973
|
const scrollVelocity = state.scrollVelocity;
|
|
1972
1974
|
let didCalculate = false;
|
|
1973
1975
|
if ((Number.isNaN(scrollVelocity) || Math.abs(scrollVelocity) < 1) && (!waitForInitialLayout || state.numPendingInitialLayout < 0)) {
|
package/index.mjs
CHANGED
|
@@ -1892,11 +1892,13 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
|
|
|
1892
1892
|
state.minIndexSizeChanged = state.minIndexSizeChanged !== void 0 ? Math.min(state.minIndexSizeChanged, index) : index;
|
|
1893
1893
|
const prevSize = getItemSize(itemKey, index, data);
|
|
1894
1894
|
let needsCalculate = false;
|
|
1895
|
+
let needsUpdateContainersDidLayout = false;
|
|
1895
1896
|
if (state.numPendingInitialLayout > 0) {
|
|
1896
1897
|
state.numPendingInitialLayout--;
|
|
1897
1898
|
if (state.numPendingInitialLayout === 0) {
|
|
1898
1899
|
needsCalculate = true;
|
|
1899
1900
|
state.numPendingInitialLayout = -1;
|
|
1901
|
+
needsUpdateContainersDidLayout = true;
|
|
1900
1902
|
}
|
|
1901
1903
|
}
|
|
1902
1904
|
sizesKnown == null ? void 0 : sizesKnown.set(itemKey, size);
|
|
@@ -1946,7 +1948,7 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
|
|
|
1946
1948
|
}
|
|
1947
1949
|
}
|
|
1948
1950
|
const isInView = index >= startBuffered && index <= endBuffered;
|
|
1949
|
-
if (!fromFixGaps && needsCalculate && isInView) {
|
|
1951
|
+
if (needsUpdateContainersDidLayout || !fromFixGaps && needsCalculate && isInView) {
|
|
1950
1952
|
const scrollVelocity = state.scrollVelocity;
|
|
1951
1953
|
let didCalculate = false;
|
|
1952
1954
|
if ((Number.isNaN(scrollVelocity) || Math.abs(scrollVelocity) < 1) && (!waitForInitialLayout || state.numPendingInitialLayout < 0)) {
|
|
@@ -1,137 +1,16 @@
|
|
|
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';
|
|
4
1
|
import * as _legendapp_list from '@legendapp/list';
|
|
5
2
|
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';
|
|
6
4
|
import * as react_native from 'react-native';
|
|
7
5
|
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 (<
|
|
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) | undefined;
|
|
56
|
-
renderScrollComponent?: (props: react_native.ScrollViewProps) => React.ReactElement<react_native.ScrollViewProps>;
|
|
57
|
-
viewabilityConfig?: _legendapp_list.ViewabilityConfig;
|
|
58
|
-
viewabilityConfigCallbackPairs?: _legendapp_list.ViewabilityConfigCallbackPairs | undefined;
|
|
59
|
-
waitForInitialLayout?: boolean;
|
|
60
|
-
} & React.RefAttributes<LegendListRef>) => React.ReactNode) | react_native.Animated.AnimatedComponent<(<T>(props: Omit<react_native.ScrollViewProps, "contentOffset" | "contentInset" | "maintainVisibleContentPosition" | "stickyHeaderIndices"> & {
|
|
61
|
-
alignItemsAtEnd?: boolean;
|
|
62
|
-
columnWrapperStyle?: _legendapp_list.ColumnWrapperStyle;
|
|
63
|
-
data: readonly T[];
|
|
64
|
-
drawDistance?: number;
|
|
65
|
-
estimatedItemSize?: number;
|
|
66
|
-
extraData?: any;
|
|
67
|
-
getEstimatedItemSize?: ((index: number, item: T) => number) | undefined;
|
|
68
|
-
initialContainerPoolRatio?: number | undefined;
|
|
69
|
-
initialScrollOffset?: number;
|
|
70
|
-
initialScrollIndex?: number;
|
|
71
|
-
ItemSeparatorComponent?: React.ComponentType<{
|
|
72
|
-
leadingItem: T;
|
|
73
|
-
}> | undefined;
|
|
74
|
-
keyExtractor?: ((item: T, index: number) => string) | undefined;
|
|
75
|
-
ListEmptyComponent?: React.ComponentType<any> | React.ReactElement | null | undefined;
|
|
76
|
-
ListFooterComponent?: React.ComponentType<any> | React.ReactElement | null | undefined;
|
|
77
|
-
ListFooterComponentStyle?: react_native.StyleProp<react_native.ViewStyle> | undefined;
|
|
78
|
-
ListHeaderComponent?: React.ComponentType<any> | React.ReactElement | null | undefined;
|
|
79
|
-
ListHeaderComponentStyle?: react_native.StyleProp<react_native.ViewStyle> | undefined;
|
|
80
|
-
maintainScrollAtEnd?: boolean;
|
|
81
|
-
maintainScrollAtEndThreshold?: number;
|
|
82
|
-
maintainVisibleContentPosition?: boolean;
|
|
83
|
-
numColumns?: number;
|
|
84
|
-
onEndReached?: ((info: {
|
|
85
|
-
distanceFromEnd: number;
|
|
86
|
-
}) => void) | null | undefined;
|
|
87
|
-
onEndReachedThreshold?: number | null | undefined;
|
|
88
|
-
onItemSizeChanged?: ((info: {
|
|
89
|
-
size: number;
|
|
90
|
-
previous: number;
|
|
91
|
-
index: number;
|
|
92
|
-
itemKey: string;
|
|
93
|
-
itemData: T;
|
|
94
|
-
}) => void) | undefined;
|
|
95
|
-
onRefresh?: () => void;
|
|
96
|
-
onStartReached?: ((info: {
|
|
97
|
-
distanceFromStart: number;
|
|
98
|
-
}) => void) | null | undefined;
|
|
99
|
-
onStartReachedThreshold?: number | null | undefined;
|
|
100
|
-
onViewableItemsChanged?: _legendapp_list.OnViewableItemsChanged | undefined;
|
|
101
|
-
progressViewOffset?: number;
|
|
102
|
-
recycleItems?: boolean;
|
|
103
|
-
refScrollView?: React.Ref<react_native.ScrollView>;
|
|
104
|
-
refreshing?: boolean;
|
|
105
|
-
renderItem?: ((props: _legendapp_list.LegendListRenderItemProps<T>) => React.ReactNode) | undefined;
|
|
106
|
-
renderScrollComponent?: (props: react_native.ScrollViewProps) => React.ReactElement<react_native.ScrollViewProps>;
|
|
107
|
-
viewabilityConfig?: _legendapp_list.ViewabilityConfig;
|
|
108
|
-
viewabilityConfigCallbackPairs?: _legendapp_list.ViewabilityConfigCallbackPairs | undefined;
|
|
109
|
-
waitForInitialLayout?: boolean;
|
|
110
|
-
} & React.RefAttributes<LegendListRef>) => React.ReactNode)> | (<ItemT_1>(props: Omit<_legendapp_list_reanimated.AnimatedLegendListPropsBase<ItemT_1>, "refLegendList"> & {
|
|
10
|
+
declare const LegendList: <ItemT, ListT extends (<ItemT_1>(props: Omit<_legendapp_list_reanimated.AnimatedLegendListPropsBase<ItemT_1>, "refLegendList"> & {
|
|
111
11
|
getEstimatedItemSize?: ((index: number, item: ItemT_1) => number) | undefined;
|
|
112
|
-
ItemSeparatorComponent?: React.ComponentType<{
|
|
113
|
-
leadingItem: ItemT_1;
|
|
114
|
-
}> | undefined;
|
|
115
12
|
keyExtractor?: ((item: ItemT_1, index: number) => string) | undefined;
|
|
116
|
-
onItemSizeChanged?: ((info: {
|
|
117
|
-
size: number;
|
|
118
|
-
previous: number;
|
|
119
|
-
index: number;
|
|
120
|
-
itemKey: string;
|
|
121
|
-
itemData: ItemT_1;
|
|
122
|
-
}) => void) | undefined;
|
|
123
|
-
renderItem?: ((props: _legendapp_list.LegendListRenderItemProps<ItemT_1>) => React.ReactNode) | undefined;
|
|
124
13
|
animatedProps?: Partial<{
|
|
125
|
-
contentOffset?: react_native.PointProp | react_native_reanimated.SharedValue<react_native.PointProp | undefined> | undefined;
|
|
126
|
-
contentInset?: Insets | react_native_reanimated.SharedValue<Insets | undefined> | undefined;
|
|
127
|
-
maintainVisibleContentPosition?: {
|
|
128
|
-
autoscrollToTopThreshold?: number | null | undefined;
|
|
129
|
-
minIndexForVisible: number;
|
|
130
|
-
} | react_native_reanimated.SharedValue<{
|
|
131
|
-
autoscrollToTopThreshold?: number | null | undefined;
|
|
132
|
-
minIndexForVisible: number;
|
|
133
|
-
} | null | undefined> | null | undefined;
|
|
134
|
-
stickyHeaderIndices?: number[] | react_native_reanimated.SharedValue<number[] | undefined> | undefined;
|
|
135
14
|
decelerationRate?: number | "fast" | "normal" | react_native_reanimated.SharedValue<number | "fast" | "normal" | undefined> | undefined;
|
|
136
15
|
horizontal?: boolean | react_native_reanimated.SharedValue<boolean | null | undefined> | null | undefined;
|
|
137
16
|
invertStickyHeaders?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
|
|
@@ -154,6 +33,7 @@ declare const LegendList: <ItemT, ListT extends (<T>(props: Omit<react_native.Sc
|
|
|
154
33
|
snapToOffsets?: number[] | react_native_reanimated.SharedValue<number[] | undefined> | undefined;
|
|
155
34
|
snapToStart?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
|
|
156
35
|
snapToEnd?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
|
|
36
|
+
stickyHeaderIndices?: number[] | react_native_reanimated.SharedValue<number[] | undefined> | undefined;
|
|
157
37
|
disableIntervalMomentum?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
|
|
158
38
|
disableScrollViewPanResponder?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
|
|
159
39
|
StickyHeaderComponent?: React.ComponentType<any> | react_native_reanimated.SharedValue<React.ComponentType<any> | undefined> | undefined;
|
|
@@ -257,8 +137,17 @@ declare const LegendList: <ItemT, ListT extends (<T>(props: Omit<react_native.Sc
|
|
|
257
137
|
bouncesZoom?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
|
|
258
138
|
canCancelContentTouches?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
|
|
259
139
|
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;
|
|
260
142
|
contentInsetAdjustmentBehavior?: "always" | "never" | "automatic" | "scrollableAxes" | react_native_reanimated.SharedValue<"always" | "never" | "automatic" | "scrollableAxes" | undefined> | undefined;
|
|
261
143
|
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;
|
|
262
151
|
maximumZoomScale?: number | react_native_reanimated.SharedValue<number | undefined> | undefined;
|
|
263
152
|
minimumZoomScale?: number | react_native_reanimated.SharedValue<number | undefined> | undefined;
|
|
264
153
|
onScrollAnimationEnd?: (() => void) | react_native_reanimated.SharedValue<(() => void) | undefined> | undefined;
|
|
@@ -267,7 +156,7 @@ declare const LegendList: <ItemT, ListT extends (<T>(props: Omit<react_native.Sc
|
|
|
267
156
|
scrollIndicatorInsets?: Insets | react_native_reanimated.SharedValue<Insets | undefined> | undefined;
|
|
268
157
|
scrollToOverflowEnabled?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
|
|
269
158
|
scrollsToTop?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
|
|
270
|
-
snapToAlignment?: "
|
|
159
|
+
snapToAlignment?: "center" | "start" | "end" | react_native_reanimated.SharedValue<"center" | "start" | "end" | undefined> | undefined;
|
|
271
160
|
onScrollToTop?: ((event: react_native.NativeSyntheticEvent<react_native.NativeScrollEvent>) => void) | react_native_reanimated.SharedValue<((event: react_native.NativeSyntheticEvent<react_native.NativeScrollEvent>) => void) | undefined> | undefined;
|
|
272
161
|
zoomScale?: number | react_native_reanimated.SharedValue<number | undefined> | undefined;
|
|
273
162
|
endFillColor?: react_native.ColorValue | react_native_reanimated.SharedValue<react_native.ColorValue | undefined> | undefined;
|
|
@@ -277,8 +166,8 @@ declare const LegendList: <ItemT, ListT extends (<T>(props: Omit<react_native.Sc
|
|
|
277
166
|
fadingEdgeLength?: number | react_native_reanimated.SharedValue<number | undefined> | undefined;
|
|
278
167
|
persistentScrollbar?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
|
|
279
168
|
} & {
|
|
280
|
-
contentContainerStyle?: react_native.StyleProp<react_native_reanimated.AnimatedStyle<react_native.StyleProp<react_native.ViewStyle>>>;
|
|
281
169
|
style?: react_native.StyleProp<react_native_reanimated.AnimatedStyle<react_native.StyleProp<react_native.ViewStyle>>>;
|
|
170
|
+
contentContainerStyle?: react_native.StyleProp<react_native_reanimated.AnimatedStyle<react_native.StyleProp<react_native.ViewStyle>>>;
|
|
282
171
|
indicatorStyle?: react_native.StyleProp<react_native_reanimated.AnimatedStyle<"default" | "black" | "white" | undefined>>;
|
|
283
172
|
} & {
|
|
284
173
|
layout?: react_native_reanimated.BaseAnimationBuilder | react_native_reanimated.LayoutAnimationFunction | typeof react_native_reanimated.BaseAnimationBuilder;
|
|
@@ -288,9 +177,120 @@ declare const LegendList: <ItemT, ListT extends (<T>(props: Omit<react_native.Sc
|
|
|
288
177
|
sharedTransitionTag?: string;
|
|
289
178
|
sharedTransitionStyle?: react_native_reanimated.SharedTransition;
|
|
290
179
|
}> | undefined;
|
|
180
|
+
renderItem?: ((props: _legendapp_list.LegendListRenderItemProps<ItemT_1>) => React.ReactNode) | 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;
|
|
291
191
|
} & {
|
|
292
192
|
ref?: React.Ref<LegendListRef>;
|
|
293
|
-
}) => React.ReactElement | null)
|
|
193
|
+
}) => React.ReactElement | null) | (<T>(props: Omit<react_native.ScrollViewProps, "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) | undefined;
|
|
239
|
+
renderScrollComponent?: (props: react_native.ScrollViewProps) => React.ReactElement<react_native.ScrollViewProps>;
|
|
240
|
+
viewabilityConfig?: _legendapp_list.ViewabilityConfig;
|
|
241
|
+
viewabilityConfigCallbackPairs?: _legendapp_list.ViewabilityConfigCallbackPairs | undefined;
|
|
242
|
+
waitForInitialLayout?: boolean;
|
|
243
|
+
} & React.RefAttributes<LegendListRef>) => React.ReactNode) | react_native.Animated.AnimatedComponent<(<T>(props: Omit<react_native.ScrollViewProps, "stickyHeaderIndices" | "contentInset" | "contentOffset" | "maintainVisibleContentPosition"> & {
|
|
244
|
+
alignItemsAtEnd?: boolean;
|
|
245
|
+
columnWrapperStyle?: _legendapp_list.ColumnWrapperStyle;
|
|
246
|
+
data: readonly T[];
|
|
247
|
+
drawDistance?: number;
|
|
248
|
+
estimatedItemSize?: number;
|
|
249
|
+
extraData?: any;
|
|
250
|
+
getEstimatedItemSize?: ((index: number, item: T) => number) | undefined;
|
|
251
|
+
initialContainerPoolRatio?: number | undefined;
|
|
252
|
+
initialScrollOffset?: number;
|
|
253
|
+
initialScrollIndex?: number;
|
|
254
|
+
ItemSeparatorComponent?: React.ComponentType<{
|
|
255
|
+
leadingItem: T;
|
|
256
|
+
}> | undefined;
|
|
257
|
+
keyExtractor?: ((item: T, index: number) => string) | undefined;
|
|
258
|
+
ListEmptyComponent?: React.ComponentType<any> | React.ReactElement | null | undefined;
|
|
259
|
+
ListFooterComponent?: React.ComponentType<any> | React.ReactElement | null | undefined;
|
|
260
|
+
ListFooterComponentStyle?: react_native.StyleProp<react_native.ViewStyle> | undefined;
|
|
261
|
+
ListHeaderComponent?: React.ComponentType<any> | React.ReactElement | null | undefined;
|
|
262
|
+
ListHeaderComponentStyle?: react_native.StyleProp<react_native.ViewStyle> | undefined;
|
|
263
|
+
maintainScrollAtEnd?: boolean;
|
|
264
|
+
maintainScrollAtEndThreshold?: number;
|
|
265
|
+
maintainVisibleContentPosition?: boolean;
|
|
266
|
+
numColumns?: number;
|
|
267
|
+
onEndReached?: ((info: {
|
|
268
|
+
distanceFromEnd: number;
|
|
269
|
+
}) => void) | null | undefined;
|
|
270
|
+
onEndReachedThreshold?: number | null | undefined;
|
|
271
|
+
onItemSizeChanged?: ((info: {
|
|
272
|
+
size: number;
|
|
273
|
+
previous: number;
|
|
274
|
+
index: number;
|
|
275
|
+
itemKey: string;
|
|
276
|
+
itemData: T;
|
|
277
|
+
}) => void) | undefined;
|
|
278
|
+
onRefresh?: () => void;
|
|
279
|
+
onStartReached?: ((info: {
|
|
280
|
+
distanceFromStart: number;
|
|
281
|
+
}) => void) | null | undefined;
|
|
282
|
+
onStartReachedThreshold?: number | null | undefined;
|
|
283
|
+
onViewableItemsChanged?: _legendapp_list.OnViewableItemsChanged | undefined;
|
|
284
|
+
progressViewOffset?: number;
|
|
285
|
+
recycleItems?: boolean;
|
|
286
|
+
refScrollView?: React.Ref<react_native.ScrollView>;
|
|
287
|
+
refreshing?: boolean;
|
|
288
|
+
renderItem?: ((props: _legendapp_list.LegendListRenderItemProps<T>) => React.ReactNode) | undefined;
|
|
289
|
+
renderScrollComponent?: (props: react_native.ScrollViewProps) => React.ReactElement<react_native.ScrollViewProps>;
|
|
290
|
+
viewabilityConfig?: _legendapp_list.ViewabilityConfig;
|
|
291
|
+
viewabilityConfigCallbackPairs?: _legendapp_list.ViewabilityConfigCallbackPairs | undefined;
|
|
292
|
+
waitForInitialLayout?: boolean;
|
|
293
|
+
} & React.RefAttributes<LegendListRef>) => React.ReactNode)> = <T>(props: Omit<react_native.ScrollViewProps, "stickyHeaderIndices" | "contentInset" | "contentOffset" | "maintainVisibleContentPosition"> & {
|
|
294
294
|
alignItemsAtEnd?: boolean;
|
|
295
295
|
columnWrapperStyle?: _legendapp_list.ColumnWrapperStyle;
|
|
296
296
|
data: readonly T[];
|
|
@@ -340,7 +340,7 @@ declare const LegendList: <ItemT, ListT extends (<T>(props: Omit<react_native.Sc
|
|
|
340
340
|
viewabilityConfig?: _legendapp_list.ViewabilityConfig;
|
|
341
341
|
viewabilityConfigCallbackPairs?: _legendapp_list.ViewabilityConfigCallbackPairs | undefined;
|
|
342
342
|
waitForInitialLayout?: boolean;
|
|
343
|
-
} & React.RefAttributes<LegendListRef>) => React.ReactNode>(props: Omit<react_native.ScrollViewProps, "
|
|
343
|
+
} & React.RefAttributes<LegendListRef>) => React.ReactNode>(props: Omit<react_native.ScrollViewProps, "stickyHeaderIndices" | "contentInset" | "contentOffset" | "maintainVisibleContentPosition"> & {
|
|
344
344
|
alignItemsAtEnd?: boolean;
|
|
345
345
|
columnWrapperStyle?: _legendapp_list.ColumnWrapperStyle;
|
|
346
346
|
data: readonly ItemT[];
|
package/keyboard-controller.d.ts
CHANGED
|
@@ -1,137 +1,16 @@
|
|
|
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';
|
|
4
1
|
import * as _legendapp_list from '@legendapp/list';
|
|
5
2
|
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';
|
|
6
4
|
import * as react_native from 'react-native';
|
|
7
5
|
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 (<
|
|
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) | undefined;
|
|
56
|
-
renderScrollComponent?: (props: react_native.ScrollViewProps) => React.ReactElement<react_native.ScrollViewProps>;
|
|
57
|
-
viewabilityConfig?: _legendapp_list.ViewabilityConfig;
|
|
58
|
-
viewabilityConfigCallbackPairs?: _legendapp_list.ViewabilityConfigCallbackPairs | undefined;
|
|
59
|
-
waitForInitialLayout?: boolean;
|
|
60
|
-
} & React.RefAttributes<LegendListRef>) => React.ReactNode) | react_native.Animated.AnimatedComponent<(<T>(props: Omit<react_native.ScrollViewProps, "contentOffset" | "contentInset" | "maintainVisibleContentPosition" | "stickyHeaderIndices"> & {
|
|
61
|
-
alignItemsAtEnd?: boolean;
|
|
62
|
-
columnWrapperStyle?: _legendapp_list.ColumnWrapperStyle;
|
|
63
|
-
data: readonly T[];
|
|
64
|
-
drawDistance?: number;
|
|
65
|
-
estimatedItemSize?: number;
|
|
66
|
-
extraData?: any;
|
|
67
|
-
getEstimatedItemSize?: ((index: number, item: T) => number) | undefined;
|
|
68
|
-
initialContainerPoolRatio?: number | undefined;
|
|
69
|
-
initialScrollOffset?: number;
|
|
70
|
-
initialScrollIndex?: number;
|
|
71
|
-
ItemSeparatorComponent?: React.ComponentType<{
|
|
72
|
-
leadingItem: T;
|
|
73
|
-
}> | undefined;
|
|
74
|
-
keyExtractor?: ((item: T, index: number) => string) | undefined;
|
|
75
|
-
ListEmptyComponent?: React.ComponentType<any> | React.ReactElement | null | undefined;
|
|
76
|
-
ListFooterComponent?: React.ComponentType<any> | React.ReactElement | null | undefined;
|
|
77
|
-
ListFooterComponentStyle?: react_native.StyleProp<react_native.ViewStyle> | undefined;
|
|
78
|
-
ListHeaderComponent?: React.ComponentType<any> | React.ReactElement | null | undefined;
|
|
79
|
-
ListHeaderComponentStyle?: react_native.StyleProp<react_native.ViewStyle> | undefined;
|
|
80
|
-
maintainScrollAtEnd?: boolean;
|
|
81
|
-
maintainScrollAtEndThreshold?: number;
|
|
82
|
-
maintainVisibleContentPosition?: boolean;
|
|
83
|
-
numColumns?: number;
|
|
84
|
-
onEndReached?: ((info: {
|
|
85
|
-
distanceFromEnd: number;
|
|
86
|
-
}) => void) | null | undefined;
|
|
87
|
-
onEndReachedThreshold?: number | null | undefined;
|
|
88
|
-
onItemSizeChanged?: ((info: {
|
|
89
|
-
size: number;
|
|
90
|
-
previous: number;
|
|
91
|
-
index: number;
|
|
92
|
-
itemKey: string;
|
|
93
|
-
itemData: T;
|
|
94
|
-
}) => void) | undefined;
|
|
95
|
-
onRefresh?: () => void;
|
|
96
|
-
onStartReached?: ((info: {
|
|
97
|
-
distanceFromStart: number;
|
|
98
|
-
}) => void) | null | undefined;
|
|
99
|
-
onStartReachedThreshold?: number | null | undefined;
|
|
100
|
-
onViewableItemsChanged?: _legendapp_list.OnViewableItemsChanged | undefined;
|
|
101
|
-
progressViewOffset?: number;
|
|
102
|
-
recycleItems?: boolean;
|
|
103
|
-
refScrollView?: React.Ref<react_native.ScrollView>;
|
|
104
|
-
refreshing?: boolean;
|
|
105
|
-
renderItem?: ((props: _legendapp_list.LegendListRenderItemProps<T>) => React.ReactNode) | undefined;
|
|
106
|
-
renderScrollComponent?: (props: react_native.ScrollViewProps) => React.ReactElement<react_native.ScrollViewProps>;
|
|
107
|
-
viewabilityConfig?: _legendapp_list.ViewabilityConfig;
|
|
108
|
-
viewabilityConfigCallbackPairs?: _legendapp_list.ViewabilityConfigCallbackPairs | undefined;
|
|
109
|
-
waitForInitialLayout?: boolean;
|
|
110
|
-
} & React.RefAttributes<LegendListRef>) => React.ReactNode)> | (<ItemT_1>(props: Omit<_legendapp_list_reanimated.AnimatedLegendListPropsBase<ItemT_1>, "refLegendList"> & {
|
|
10
|
+
declare const LegendList: <ItemT, ListT extends (<ItemT_1>(props: Omit<_legendapp_list_reanimated.AnimatedLegendListPropsBase<ItemT_1>, "refLegendList"> & {
|
|
111
11
|
getEstimatedItemSize?: ((index: number, item: ItemT_1) => number) | undefined;
|
|
112
|
-
ItemSeparatorComponent?: React.ComponentType<{
|
|
113
|
-
leadingItem: ItemT_1;
|
|
114
|
-
}> | undefined;
|
|
115
12
|
keyExtractor?: ((item: ItemT_1, index: number) => string) | undefined;
|
|
116
|
-
onItemSizeChanged?: ((info: {
|
|
117
|
-
size: number;
|
|
118
|
-
previous: number;
|
|
119
|
-
index: number;
|
|
120
|
-
itemKey: string;
|
|
121
|
-
itemData: ItemT_1;
|
|
122
|
-
}) => void) | undefined;
|
|
123
|
-
renderItem?: ((props: _legendapp_list.LegendListRenderItemProps<ItemT_1>) => React.ReactNode) | undefined;
|
|
124
13
|
animatedProps?: Partial<{
|
|
125
|
-
contentOffset?: react_native.PointProp | react_native_reanimated.SharedValue<react_native.PointProp | undefined> | undefined;
|
|
126
|
-
contentInset?: Insets | react_native_reanimated.SharedValue<Insets | undefined> | undefined;
|
|
127
|
-
maintainVisibleContentPosition?: {
|
|
128
|
-
autoscrollToTopThreshold?: number | null | undefined;
|
|
129
|
-
minIndexForVisible: number;
|
|
130
|
-
} | react_native_reanimated.SharedValue<{
|
|
131
|
-
autoscrollToTopThreshold?: number | null | undefined;
|
|
132
|
-
minIndexForVisible: number;
|
|
133
|
-
} | null | undefined> | null | undefined;
|
|
134
|
-
stickyHeaderIndices?: number[] | react_native_reanimated.SharedValue<number[] | undefined> | undefined;
|
|
135
14
|
decelerationRate?: number | "fast" | "normal" | react_native_reanimated.SharedValue<number | "fast" | "normal" | undefined> | undefined;
|
|
136
15
|
horizontal?: boolean | react_native_reanimated.SharedValue<boolean | null | undefined> | null | undefined;
|
|
137
16
|
invertStickyHeaders?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
|
|
@@ -154,6 +33,7 @@ declare const LegendList: <ItemT, ListT extends (<T>(props: Omit<react_native.Sc
|
|
|
154
33
|
snapToOffsets?: number[] | react_native_reanimated.SharedValue<number[] | undefined> | undefined;
|
|
155
34
|
snapToStart?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
|
|
156
35
|
snapToEnd?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
|
|
36
|
+
stickyHeaderIndices?: number[] | react_native_reanimated.SharedValue<number[] | undefined> | undefined;
|
|
157
37
|
disableIntervalMomentum?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
|
|
158
38
|
disableScrollViewPanResponder?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
|
|
159
39
|
StickyHeaderComponent?: React.ComponentType<any> | react_native_reanimated.SharedValue<React.ComponentType<any> | undefined> | undefined;
|
|
@@ -257,8 +137,17 @@ declare const LegendList: <ItemT, ListT extends (<T>(props: Omit<react_native.Sc
|
|
|
257
137
|
bouncesZoom?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
|
|
258
138
|
canCancelContentTouches?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
|
|
259
139
|
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;
|
|
260
142
|
contentInsetAdjustmentBehavior?: "always" | "never" | "automatic" | "scrollableAxes" | react_native_reanimated.SharedValue<"always" | "never" | "automatic" | "scrollableAxes" | undefined> | undefined;
|
|
261
143
|
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;
|
|
262
151
|
maximumZoomScale?: number | react_native_reanimated.SharedValue<number | undefined> | undefined;
|
|
263
152
|
minimumZoomScale?: number | react_native_reanimated.SharedValue<number | undefined> | undefined;
|
|
264
153
|
onScrollAnimationEnd?: (() => void) | react_native_reanimated.SharedValue<(() => void) | undefined> | undefined;
|
|
@@ -267,7 +156,7 @@ declare const LegendList: <ItemT, ListT extends (<T>(props: Omit<react_native.Sc
|
|
|
267
156
|
scrollIndicatorInsets?: Insets | react_native_reanimated.SharedValue<Insets | undefined> | undefined;
|
|
268
157
|
scrollToOverflowEnabled?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
|
|
269
158
|
scrollsToTop?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
|
|
270
|
-
snapToAlignment?: "
|
|
159
|
+
snapToAlignment?: "center" | "start" | "end" | react_native_reanimated.SharedValue<"center" | "start" | "end" | undefined> | undefined;
|
|
271
160
|
onScrollToTop?: ((event: react_native.NativeSyntheticEvent<react_native.NativeScrollEvent>) => void) | react_native_reanimated.SharedValue<((event: react_native.NativeSyntheticEvent<react_native.NativeScrollEvent>) => void) | undefined> | undefined;
|
|
272
161
|
zoomScale?: number | react_native_reanimated.SharedValue<number | undefined> | undefined;
|
|
273
162
|
endFillColor?: react_native.ColorValue | react_native_reanimated.SharedValue<react_native.ColorValue | undefined> | undefined;
|
|
@@ -277,8 +166,8 @@ declare const LegendList: <ItemT, ListT extends (<T>(props: Omit<react_native.Sc
|
|
|
277
166
|
fadingEdgeLength?: number | react_native_reanimated.SharedValue<number | undefined> | undefined;
|
|
278
167
|
persistentScrollbar?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
|
|
279
168
|
} & {
|
|
280
|
-
contentContainerStyle?: react_native.StyleProp<react_native_reanimated.AnimatedStyle<react_native.StyleProp<react_native.ViewStyle>>>;
|
|
281
169
|
style?: react_native.StyleProp<react_native_reanimated.AnimatedStyle<react_native.StyleProp<react_native.ViewStyle>>>;
|
|
170
|
+
contentContainerStyle?: react_native.StyleProp<react_native_reanimated.AnimatedStyle<react_native.StyleProp<react_native.ViewStyle>>>;
|
|
282
171
|
indicatorStyle?: react_native.StyleProp<react_native_reanimated.AnimatedStyle<"default" | "black" | "white" | undefined>>;
|
|
283
172
|
} & {
|
|
284
173
|
layout?: react_native_reanimated.BaseAnimationBuilder | react_native_reanimated.LayoutAnimationFunction | typeof react_native_reanimated.BaseAnimationBuilder;
|
|
@@ -288,9 +177,120 @@ declare const LegendList: <ItemT, ListT extends (<T>(props: Omit<react_native.Sc
|
|
|
288
177
|
sharedTransitionTag?: string;
|
|
289
178
|
sharedTransitionStyle?: react_native_reanimated.SharedTransition;
|
|
290
179
|
}> | undefined;
|
|
180
|
+
renderItem?: ((props: _legendapp_list.LegendListRenderItemProps<ItemT_1>) => React.ReactNode) | 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;
|
|
291
191
|
} & {
|
|
292
192
|
ref?: React.Ref<LegendListRef>;
|
|
293
|
-
}) => React.ReactElement | null)
|
|
193
|
+
}) => React.ReactElement | null) | (<T>(props: Omit<react_native.ScrollViewProps, "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) | undefined;
|
|
239
|
+
renderScrollComponent?: (props: react_native.ScrollViewProps) => React.ReactElement<react_native.ScrollViewProps>;
|
|
240
|
+
viewabilityConfig?: _legendapp_list.ViewabilityConfig;
|
|
241
|
+
viewabilityConfigCallbackPairs?: _legendapp_list.ViewabilityConfigCallbackPairs | undefined;
|
|
242
|
+
waitForInitialLayout?: boolean;
|
|
243
|
+
} & React.RefAttributes<LegendListRef>) => React.ReactNode) | react_native.Animated.AnimatedComponent<(<T>(props: Omit<react_native.ScrollViewProps, "stickyHeaderIndices" | "contentInset" | "contentOffset" | "maintainVisibleContentPosition"> & {
|
|
244
|
+
alignItemsAtEnd?: boolean;
|
|
245
|
+
columnWrapperStyle?: _legendapp_list.ColumnWrapperStyle;
|
|
246
|
+
data: readonly T[];
|
|
247
|
+
drawDistance?: number;
|
|
248
|
+
estimatedItemSize?: number;
|
|
249
|
+
extraData?: any;
|
|
250
|
+
getEstimatedItemSize?: ((index: number, item: T) => number) | undefined;
|
|
251
|
+
initialContainerPoolRatio?: number | undefined;
|
|
252
|
+
initialScrollOffset?: number;
|
|
253
|
+
initialScrollIndex?: number;
|
|
254
|
+
ItemSeparatorComponent?: React.ComponentType<{
|
|
255
|
+
leadingItem: T;
|
|
256
|
+
}> | undefined;
|
|
257
|
+
keyExtractor?: ((item: T, index: number) => string) | undefined;
|
|
258
|
+
ListEmptyComponent?: React.ComponentType<any> | React.ReactElement | null | undefined;
|
|
259
|
+
ListFooterComponent?: React.ComponentType<any> | React.ReactElement | null | undefined;
|
|
260
|
+
ListFooterComponentStyle?: react_native.StyleProp<react_native.ViewStyle> | undefined;
|
|
261
|
+
ListHeaderComponent?: React.ComponentType<any> | React.ReactElement | null | undefined;
|
|
262
|
+
ListHeaderComponentStyle?: react_native.StyleProp<react_native.ViewStyle> | undefined;
|
|
263
|
+
maintainScrollAtEnd?: boolean;
|
|
264
|
+
maintainScrollAtEndThreshold?: number;
|
|
265
|
+
maintainVisibleContentPosition?: boolean;
|
|
266
|
+
numColumns?: number;
|
|
267
|
+
onEndReached?: ((info: {
|
|
268
|
+
distanceFromEnd: number;
|
|
269
|
+
}) => void) | null | undefined;
|
|
270
|
+
onEndReachedThreshold?: number | null | undefined;
|
|
271
|
+
onItemSizeChanged?: ((info: {
|
|
272
|
+
size: number;
|
|
273
|
+
previous: number;
|
|
274
|
+
index: number;
|
|
275
|
+
itemKey: string;
|
|
276
|
+
itemData: T;
|
|
277
|
+
}) => void) | undefined;
|
|
278
|
+
onRefresh?: () => void;
|
|
279
|
+
onStartReached?: ((info: {
|
|
280
|
+
distanceFromStart: number;
|
|
281
|
+
}) => void) | null | undefined;
|
|
282
|
+
onStartReachedThreshold?: number | null | undefined;
|
|
283
|
+
onViewableItemsChanged?: _legendapp_list.OnViewableItemsChanged | undefined;
|
|
284
|
+
progressViewOffset?: number;
|
|
285
|
+
recycleItems?: boolean;
|
|
286
|
+
refScrollView?: React.Ref<react_native.ScrollView>;
|
|
287
|
+
refreshing?: boolean;
|
|
288
|
+
renderItem?: ((props: _legendapp_list.LegendListRenderItemProps<T>) => React.ReactNode) | undefined;
|
|
289
|
+
renderScrollComponent?: (props: react_native.ScrollViewProps) => React.ReactElement<react_native.ScrollViewProps>;
|
|
290
|
+
viewabilityConfig?: _legendapp_list.ViewabilityConfig;
|
|
291
|
+
viewabilityConfigCallbackPairs?: _legendapp_list.ViewabilityConfigCallbackPairs | undefined;
|
|
292
|
+
waitForInitialLayout?: boolean;
|
|
293
|
+
} & React.RefAttributes<LegendListRef>) => React.ReactNode)> = <T>(props: Omit<react_native.ScrollViewProps, "stickyHeaderIndices" | "contentInset" | "contentOffset" | "maintainVisibleContentPosition"> & {
|
|
294
294
|
alignItemsAtEnd?: boolean;
|
|
295
295
|
columnWrapperStyle?: _legendapp_list.ColumnWrapperStyle;
|
|
296
296
|
data: readonly T[];
|
|
@@ -340,7 +340,7 @@ declare const LegendList: <ItemT, ListT extends (<T>(props: Omit<react_native.Sc
|
|
|
340
340
|
viewabilityConfig?: _legendapp_list.ViewabilityConfig;
|
|
341
341
|
viewabilityConfigCallbackPairs?: _legendapp_list.ViewabilityConfigCallbackPairs | undefined;
|
|
342
342
|
waitForInitialLayout?: boolean;
|
|
343
|
-
} & React.RefAttributes<LegendListRef>) => React.ReactNode>(props: Omit<react_native.ScrollViewProps, "
|
|
343
|
+
} & React.RefAttributes<LegendListRef>) => React.ReactNode>(props: Omit<react_native.ScrollViewProps, "stickyHeaderIndices" | "contentInset" | "contentOffset" | "maintainVisibleContentPosition"> & {
|
|
344
344
|
alignItemsAtEnd?: boolean;
|
|
345
345
|
columnWrapperStyle?: _legendapp_list.ColumnWrapperStyle;
|
|
346
346
|
data: readonly ItemT[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@legendapp/list",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.50",
|
|
4
4
|
"description": "Legend List aims to be a drop-in replacement for FlatList with much better performance and supporting dynamically sized items.",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"private": false,
|