@legendapp/list 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +32 -15
- package/index.mjs +32 -15
- package/keyboard-controller.d.mts +133 -133
- package/keyboard-controller.d.ts +133 -133
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1110,6 +1110,11 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
|
|
|
1110
1110
|
}) => {
|
|
1111
1111
|
var _a;
|
|
1112
1112
|
const state = refState.current;
|
|
1113
|
+
if (index >= state.data.length) {
|
|
1114
|
+
index = state.data.length - 1;
|
|
1115
|
+
} else if (index < 0) {
|
|
1116
|
+
index = 0;
|
|
1117
|
+
}
|
|
1113
1118
|
const firstIndexOffset = calculateOffsetForIndex(index);
|
|
1114
1119
|
let firstIndexScrollPostion = firstIndexOffset - viewOffset;
|
|
1115
1120
|
const diff = Math.abs(state.scroll - firstIndexScrollPostion);
|
|
@@ -1128,15 +1133,7 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
|
|
|
1128
1133
|
if (viewPosition) {
|
|
1129
1134
|
firstIndexScrollPostion -= viewPosition * (state.scrollLength - getItemSize(getId(index), index, state.data[index]));
|
|
1130
1135
|
}
|
|
1131
|
-
state.scrollAdjustHandler.setDisableAdjust(true);
|
|
1132
|
-
state.scrollingToOffset = firstIndexScrollPostion;
|
|
1133
1136
|
scrollTo(firstIndexScrollPostion, animated);
|
|
1134
|
-
if (!animated) {
|
|
1135
|
-
requestAnimationFrame(() => {
|
|
1136
|
-
state.scrollingToOffset = void 0;
|
|
1137
|
-
state.scrollAdjustHandler.setDisableAdjust(false);
|
|
1138
|
-
});
|
|
1139
|
-
}
|
|
1140
1137
|
};
|
|
1141
1138
|
const setDidLayout = () => {
|
|
1142
1139
|
refState.current.queuedInitialLayout = true;
|
|
@@ -1240,10 +1237,12 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
|
|
|
1240
1237
|
};
|
|
1241
1238
|
const disableScrollJumps = (timeout) => {
|
|
1242
1239
|
const state = refState.current;
|
|
1243
|
-
state.
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1240
|
+
if (state.scrollingToOffset === void 0) {
|
|
1241
|
+
state.disableScrollJumpsFrom = state.scroll - state.scrollAdjustHandler.getAppliedAdjust();
|
|
1242
|
+
setTimeout(() => {
|
|
1243
|
+
state.disableScrollJumpsFrom = void 0;
|
|
1244
|
+
}, timeout);
|
|
1245
|
+
}
|
|
1247
1246
|
};
|
|
1248
1247
|
const getElementPositionBelowAchor = (id) => {
|
|
1249
1248
|
var _a;
|
|
@@ -1386,6 +1385,7 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
|
|
|
1386
1385
|
}
|
|
1387
1386
|
}
|
|
1388
1387
|
const scrollBottom = scroll + scrollLength;
|
|
1388
|
+
const prevStartBuffered = state.startBuffered;
|
|
1389
1389
|
const prevEndBuffered = state.endBuffered;
|
|
1390
1390
|
let startNoBuffer = null;
|
|
1391
1391
|
let startBuffered = null;
|
|
@@ -1570,7 +1570,7 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
|
|
|
1570
1570
|
const prevPos = peek$(ctx, `containerPosition${i}`);
|
|
1571
1571
|
const pos = positions.get(id) || 0;
|
|
1572
1572
|
const size = getItemSize(id, itemIndex, data[i]);
|
|
1573
|
-
if (pos + size >= scroll && pos <= scrollBottom || prevPos + size >= scroll && prevPos <= scrollBottom || endBuffered < prevEndBuffered) {
|
|
1573
|
+
if (pos + size >= scroll && pos <= scrollBottom || prevPos + size >= scroll && prevPos <= scrollBottom || endBuffered < prevEndBuffered || startBuffered > prevStartBuffered) {
|
|
1574
1574
|
set$(ctx, `containerPosition${i}`, ANCHORED_POSITION_OUT_OF_VIEW);
|
|
1575
1575
|
}
|
|
1576
1576
|
} else {
|
|
@@ -1653,13 +1653,27 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
|
|
|
1653
1653
|
setPaddingTop({ alignItemsPaddingTop: paddingTop });
|
|
1654
1654
|
}
|
|
1655
1655
|
};
|
|
1656
|
+
const finishScrollTo = () => {
|
|
1657
|
+
const state = refState.current;
|
|
1658
|
+
if (state) {
|
|
1659
|
+
state.scrollingToOffset = void 0;
|
|
1660
|
+
state.scrollAdjustHandler.setDisableAdjust(false);
|
|
1661
|
+
calculateItemsInView();
|
|
1662
|
+
}
|
|
1663
|
+
};
|
|
1656
1664
|
const scrollTo = (offset, animated) => {
|
|
1657
1665
|
var _a;
|
|
1666
|
+
const state = refState.current;
|
|
1667
|
+
state.scrollAdjustHandler.setDisableAdjust(true);
|
|
1668
|
+
state.scrollingToOffset = offset;
|
|
1658
1669
|
(_a = refScroller.current) == null ? void 0 : _a.scrollTo({
|
|
1659
1670
|
x: horizontal ? offset : 0,
|
|
1660
1671
|
y: horizontal ? 0 : offset,
|
|
1661
1672
|
animated: !!animated
|
|
1662
1673
|
});
|
|
1674
|
+
if (!animated) {
|
|
1675
|
+
requestAnimationFrame(finishScrollTo);
|
|
1676
|
+
}
|
|
1663
1677
|
};
|
|
1664
1678
|
const doMaintainScrollAtEnd = (animated) => {
|
|
1665
1679
|
const state = refState.current;
|
|
@@ -1912,7 +1926,7 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
|
|
|
1912
1926
|
isFirst
|
|
1913
1927
|
);
|
|
1914
1928
|
}
|
|
1915
|
-
}, [
|
|
1929
|
+
}, [dataProp, numColumnsProp]);
|
|
1916
1930
|
React2.useEffect(() => {
|
|
1917
1931
|
set$(ctx, "extraData", extraData);
|
|
1918
1932
|
}, [extraData]);
|
|
@@ -2052,7 +2066,7 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
|
|
|
2052
2066
|
if (needsUpdateContainersDidLayout || !fromFixGaps && needsCalculate && (isInView || !queuedInitialLayout)) {
|
|
2053
2067
|
const scrollVelocity = state.scrollVelocity;
|
|
2054
2068
|
let didCalculate = false;
|
|
2055
|
-
if ((Number.isNaN(scrollVelocity) || Math.abs(scrollVelocity) < 1) && (!waitForInitialLayout || needsUpdateContainersDidLayout || queuedInitialLayout)) {
|
|
2069
|
+
if ((Number.isNaN(scrollVelocity) || Math.abs(scrollVelocity) < 1 || state.scrollingToOffset !== void 0) && (!waitForInitialLayout || needsUpdateContainersDidLayout || queuedInitialLayout)) {
|
|
2056
2070
|
if (Date.now() - state.lastBatchingAction < 500) {
|
|
2057
2071
|
if (!state.queuedCalculateItemsInView) {
|
|
2058
2072
|
state.queuedCalculateItemsInView = requestAnimationFrame(() => {
|
|
@@ -2110,6 +2124,9 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
|
|
|
2110
2124
|
if (state.ignoreScrollFromCalcTotal && newScroll !== 0) {
|
|
2111
2125
|
return;
|
|
2112
2126
|
}
|
|
2127
|
+
if (state.scrollingToOffset !== void 0 && Math.abs(newScroll - state.scrollingToOffset) < 10) {
|
|
2128
|
+
finishScrollTo();
|
|
2129
|
+
}
|
|
2113
2130
|
if (state.disableScrollJumpsFrom !== void 0) {
|
|
2114
2131
|
const scrollMinusAdjust = newScroll - state.scrollAdjustHandler.getAppliedAdjust();
|
|
2115
2132
|
if (Math.abs(scrollMinusAdjust - state.disableScrollJumpsFrom) > 200) {
|
package/index.mjs
CHANGED
|
@@ -1089,6 +1089,11 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
|
|
|
1089
1089
|
}) => {
|
|
1090
1090
|
var _a;
|
|
1091
1091
|
const state = refState.current;
|
|
1092
|
+
if (index >= state.data.length) {
|
|
1093
|
+
index = state.data.length - 1;
|
|
1094
|
+
} else if (index < 0) {
|
|
1095
|
+
index = 0;
|
|
1096
|
+
}
|
|
1092
1097
|
const firstIndexOffset = calculateOffsetForIndex(index);
|
|
1093
1098
|
let firstIndexScrollPostion = firstIndexOffset - viewOffset;
|
|
1094
1099
|
const diff = Math.abs(state.scroll - firstIndexScrollPostion);
|
|
@@ -1107,15 +1112,7 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
|
|
|
1107
1112
|
if (viewPosition) {
|
|
1108
1113
|
firstIndexScrollPostion -= viewPosition * (state.scrollLength - getItemSize(getId(index), index, state.data[index]));
|
|
1109
1114
|
}
|
|
1110
|
-
state.scrollAdjustHandler.setDisableAdjust(true);
|
|
1111
|
-
state.scrollingToOffset = firstIndexScrollPostion;
|
|
1112
1115
|
scrollTo(firstIndexScrollPostion, animated);
|
|
1113
|
-
if (!animated) {
|
|
1114
|
-
requestAnimationFrame(() => {
|
|
1115
|
-
state.scrollingToOffset = void 0;
|
|
1116
|
-
state.scrollAdjustHandler.setDisableAdjust(false);
|
|
1117
|
-
});
|
|
1118
|
-
}
|
|
1119
1116
|
};
|
|
1120
1117
|
const setDidLayout = () => {
|
|
1121
1118
|
refState.current.queuedInitialLayout = true;
|
|
@@ -1219,10 +1216,12 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
|
|
|
1219
1216
|
};
|
|
1220
1217
|
const disableScrollJumps = (timeout) => {
|
|
1221
1218
|
const state = refState.current;
|
|
1222
|
-
state.
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1219
|
+
if (state.scrollingToOffset === void 0) {
|
|
1220
|
+
state.disableScrollJumpsFrom = state.scroll - state.scrollAdjustHandler.getAppliedAdjust();
|
|
1221
|
+
setTimeout(() => {
|
|
1222
|
+
state.disableScrollJumpsFrom = void 0;
|
|
1223
|
+
}, timeout);
|
|
1224
|
+
}
|
|
1226
1225
|
};
|
|
1227
1226
|
const getElementPositionBelowAchor = (id) => {
|
|
1228
1227
|
var _a;
|
|
@@ -1365,6 +1364,7 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
|
|
|
1365
1364
|
}
|
|
1366
1365
|
}
|
|
1367
1366
|
const scrollBottom = scroll + scrollLength;
|
|
1367
|
+
const prevStartBuffered = state.startBuffered;
|
|
1368
1368
|
const prevEndBuffered = state.endBuffered;
|
|
1369
1369
|
let startNoBuffer = null;
|
|
1370
1370
|
let startBuffered = null;
|
|
@@ -1549,7 +1549,7 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
|
|
|
1549
1549
|
const prevPos = peek$(ctx, `containerPosition${i}`);
|
|
1550
1550
|
const pos = positions.get(id) || 0;
|
|
1551
1551
|
const size = getItemSize(id, itemIndex, data[i]);
|
|
1552
|
-
if (pos + size >= scroll && pos <= scrollBottom || prevPos + size >= scroll && prevPos <= scrollBottom || endBuffered < prevEndBuffered) {
|
|
1552
|
+
if (pos + size >= scroll && pos <= scrollBottom || prevPos + size >= scroll && prevPos <= scrollBottom || endBuffered < prevEndBuffered || startBuffered > prevStartBuffered) {
|
|
1553
1553
|
set$(ctx, `containerPosition${i}`, ANCHORED_POSITION_OUT_OF_VIEW);
|
|
1554
1554
|
}
|
|
1555
1555
|
} else {
|
|
@@ -1632,13 +1632,27 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
|
|
|
1632
1632
|
setPaddingTop({ alignItemsPaddingTop: paddingTop });
|
|
1633
1633
|
}
|
|
1634
1634
|
};
|
|
1635
|
+
const finishScrollTo = () => {
|
|
1636
|
+
const state = refState.current;
|
|
1637
|
+
if (state) {
|
|
1638
|
+
state.scrollingToOffset = void 0;
|
|
1639
|
+
state.scrollAdjustHandler.setDisableAdjust(false);
|
|
1640
|
+
calculateItemsInView();
|
|
1641
|
+
}
|
|
1642
|
+
};
|
|
1635
1643
|
const scrollTo = (offset, animated) => {
|
|
1636
1644
|
var _a;
|
|
1645
|
+
const state = refState.current;
|
|
1646
|
+
state.scrollAdjustHandler.setDisableAdjust(true);
|
|
1647
|
+
state.scrollingToOffset = offset;
|
|
1637
1648
|
(_a = refScroller.current) == null ? void 0 : _a.scrollTo({
|
|
1638
1649
|
x: horizontal ? offset : 0,
|
|
1639
1650
|
y: horizontal ? 0 : offset,
|
|
1640
1651
|
animated: !!animated
|
|
1641
1652
|
});
|
|
1653
|
+
if (!animated) {
|
|
1654
|
+
requestAnimationFrame(finishScrollTo);
|
|
1655
|
+
}
|
|
1642
1656
|
};
|
|
1643
1657
|
const doMaintainScrollAtEnd = (animated) => {
|
|
1644
1658
|
const state = refState.current;
|
|
@@ -1891,7 +1905,7 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
|
|
|
1891
1905
|
isFirst
|
|
1892
1906
|
);
|
|
1893
1907
|
}
|
|
1894
|
-
}, [
|
|
1908
|
+
}, [dataProp, numColumnsProp]);
|
|
1895
1909
|
useEffect(() => {
|
|
1896
1910
|
set$(ctx, "extraData", extraData);
|
|
1897
1911
|
}, [extraData]);
|
|
@@ -2031,7 +2045,7 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
|
|
|
2031
2045
|
if (needsUpdateContainersDidLayout || !fromFixGaps && needsCalculate && (isInView || !queuedInitialLayout)) {
|
|
2032
2046
|
const scrollVelocity = state.scrollVelocity;
|
|
2033
2047
|
let didCalculate = false;
|
|
2034
|
-
if ((Number.isNaN(scrollVelocity) || Math.abs(scrollVelocity) < 1) && (!waitForInitialLayout || needsUpdateContainersDidLayout || queuedInitialLayout)) {
|
|
2048
|
+
if ((Number.isNaN(scrollVelocity) || Math.abs(scrollVelocity) < 1 || state.scrollingToOffset !== void 0) && (!waitForInitialLayout || needsUpdateContainersDidLayout || queuedInitialLayout)) {
|
|
2035
2049
|
if (Date.now() - state.lastBatchingAction < 500) {
|
|
2036
2050
|
if (!state.queuedCalculateItemsInView) {
|
|
2037
2051
|
state.queuedCalculateItemsInView = requestAnimationFrame(() => {
|
|
@@ -2089,6 +2103,9 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
|
|
|
2089
2103
|
if (state.ignoreScrollFromCalcTotal && newScroll !== 0) {
|
|
2090
2104
|
return;
|
|
2091
2105
|
}
|
|
2106
|
+
if (state.scrollingToOffset !== void 0 && Math.abs(newScroll - state.scrollingToOffset) < 10) {
|
|
2107
|
+
finishScrollTo();
|
|
2108
|
+
}
|
|
2092
2109
|
if (state.disableScrollJumpsFrom !== void 0) {
|
|
2093
2110
|
const scrollMinusAdjust = newScroll - state.scrollAdjustHandler.getAppliedAdjust();
|
|
2094
2111
|
if (Math.abs(scrollMinusAdjust - state.disableScrollJumpsFrom) > 200) {
|
|
@@ -1,16 +1,141 @@
|
|
|
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 (<
|
|
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) | 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
|
+
} & React.RefAttributes<LegendListRef>) => React.ReactNode) | react_native.Animated.AnimatedComponent<(<T>(props: Omit<Omit<react_native.ScrollViewProps, "scrollEventThrottle">, "contentOffset" | "contentInset" | "maintainVisibleContentPosition" | "stickyHeaderIndices" | "removeClippedSubviews"> & {
|
|
62
|
+
alignItemsAtEnd?: boolean;
|
|
63
|
+
columnWrapperStyle?: _legendapp_list.ColumnWrapperStyle;
|
|
64
|
+
data: readonly T[];
|
|
65
|
+
drawDistance?: number;
|
|
66
|
+
estimatedItemSize?: number;
|
|
67
|
+
extraData?: any;
|
|
68
|
+
getEstimatedItemSize?: ((index: number, item: T) => number) | undefined;
|
|
69
|
+
initialContainerPoolRatio?: number | undefined;
|
|
70
|
+
initialScrollOffset?: number;
|
|
71
|
+
initialScrollIndex?: number;
|
|
72
|
+
ItemSeparatorComponent?: React.ComponentType<{
|
|
73
|
+
leadingItem: T;
|
|
74
|
+
}> | undefined;
|
|
75
|
+
keyExtractor?: ((item: T, index: number) => string) | undefined;
|
|
76
|
+
ListEmptyComponent?: React.ComponentType<any> | React.ReactElement | null | undefined;
|
|
77
|
+
ListFooterComponent?: React.ComponentType<any> | React.ReactElement | null | undefined;
|
|
78
|
+
ListFooterComponentStyle?: react_native.StyleProp<react_native.ViewStyle> | undefined;
|
|
79
|
+
ListHeaderComponent?: React.ComponentType<any> | React.ReactElement | null | undefined;
|
|
80
|
+
ListHeaderComponentStyle?: react_native.StyleProp<react_native.ViewStyle> | undefined;
|
|
81
|
+
maintainScrollAtEnd?: boolean;
|
|
82
|
+
maintainScrollAtEndThreshold?: number;
|
|
83
|
+
maintainVisibleContentPosition?: boolean;
|
|
84
|
+
numColumns?: number;
|
|
85
|
+
onEndReached?: ((info: {
|
|
86
|
+
distanceFromEnd: number;
|
|
87
|
+
}) => void) | null | undefined;
|
|
88
|
+
onEndReachedThreshold?: number | null | undefined;
|
|
89
|
+
onItemSizeChanged?: ((info: {
|
|
90
|
+
size: number;
|
|
91
|
+
previous: number;
|
|
92
|
+
index: number;
|
|
93
|
+
itemKey: string;
|
|
94
|
+
itemData: T;
|
|
95
|
+
}) => void) | undefined;
|
|
96
|
+
onRefresh?: () => void;
|
|
97
|
+
onStartReached?: ((info: {
|
|
98
|
+
distanceFromStart: number;
|
|
99
|
+
}) => void) | null | undefined;
|
|
100
|
+
onStartReachedThreshold?: number | null | undefined;
|
|
101
|
+
onViewableItemsChanged?: _legendapp_list.OnViewableItemsChanged | undefined;
|
|
102
|
+
progressViewOffset?: number;
|
|
103
|
+
recycleItems?: boolean;
|
|
104
|
+
refScrollView?: React.Ref<react_native.ScrollView>;
|
|
105
|
+
refreshing?: boolean;
|
|
106
|
+
renderItem?: ((props: _legendapp_list.LegendListRenderItemProps<T>) => React.ReactNode) | undefined;
|
|
107
|
+
renderScrollComponent?: (props: react_native.ScrollViewProps) => React.ReactElement<react_native.ScrollViewProps>;
|
|
108
|
+
suggestEstimatedItemSize?: boolean;
|
|
109
|
+
viewabilityConfig?: _legendapp_list.ViewabilityConfig;
|
|
110
|
+
viewabilityConfigCallbackPairs?: _legendapp_list.ViewabilityConfigCallbackPairs | undefined;
|
|
111
|
+
waitForInitialLayout?: boolean;
|
|
112
|
+
} & React.RefAttributes<LegendListRef>) => React.ReactNode)> | (<ItemT_1>(props: Omit<_legendapp_list_reanimated.AnimatedLegendListPropsBase<ItemT_1>, "refLegendList"> & {
|
|
11
113
|
getEstimatedItemSize?: ((index: number, item: ItemT_1) => number) | undefined;
|
|
114
|
+
ItemSeparatorComponent?: React.ComponentType<{
|
|
115
|
+
leadingItem: ItemT_1;
|
|
116
|
+
}> | undefined;
|
|
12
117
|
keyExtractor?: ((item: ItemT_1, index: number) => string) | undefined;
|
|
118
|
+
onItemSizeChanged?: ((info: {
|
|
119
|
+
size: number;
|
|
120
|
+
previous: number;
|
|
121
|
+
index: number;
|
|
122
|
+
itemKey: string;
|
|
123
|
+
itemData: ItemT_1;
|
|
124
|
+
}) => void) | undefined;
|
|
125
|
+
renderItem?: ((props: _legendapp_list.LegendListRenderItemProps<ItemT_1>) => React.ReactNode) | undefined;
|
|
13
126
|
animatedProps?: Partial<{
|
|
127
|
+
contentOffset?: react_native.PointProp | react_native_reanimated.SharedValue<react_native.PointProp | undefined> | undefined;
|
|
128
|
+
contentInset?: Insets | react_native_reanimated.SharedValue<Insets | undefined> | undefined;
|
|
129
|
+
maintainVisibleContentPosition?: {
|
|
130
|
+
autoscrollToTopThreshold?: number | null | undefined;
|
|
131
|
+
minIndexForVisible: number;
|
|
132
|
+
} | react_native_reanimated.SharedValue<{
|
|
133
|
+
autoscrollToTopThreshold?: number | null | undefined;
|
|
134
|
+
minIndexForVisible: number;
|
|
135
|
+
} | null | undefined> | null | undefined;
|
|
136
|
+
stickyHeaderIndices?: number[] | react_native_reanimated.SharedValue<number[] | undefined> | undefined;
|
|
137
|
+
removeClippedSubviews?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
|
|
138
|
+
scrollEventThrottle?: number | react_native_reanimated.SharedValue<number | undefined> | undefined;
|
|
14
139
|
decelerationRate?: number | "fast" | "normal" | react_native_reanimated.SharedValue<number | "fast" | "normal" | undefined> | undefined;
|
|
15
140
|
horizontal?: boolean | react_native_reanimated.SharedValue<boolean | null | undefined> | null | undefined;
|
|
16
141
|
invertStickyHeaders?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
|
|
@@ -24,7 +149,6 @@ declare const LegendList: <ItemT, ListT extends (<ItemT_1>(props: Omit<_legendap
|
|
|
24
149
|
onMomentumScrollBegin?: ((event: react_native.NativeSyntheticEvent<react_native.NativeScrollEvent>) => void) | react_native_reanimated.SharedValue<((event: react_native.NativeSyntheticEvent<react_native.NativeScrollEvent>) => void) | undefined> | undefined;
|
|
25
150
|
pagingEnabled?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
|
|
26
151
|
scrollEnabled?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
|
|
27
|
-
removeClippedSubviews?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
|
|
28
152
|
showsHorizontalScrollIndicator?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
|
|
29
153
|
showsVerticalScrollIndicator?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
|
|
30
154
|
stickyHeaderHiddenOnScroll?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
|
|
@@ -33,7 +157,6 @@ declare const LegendList: <ItemT, ListT extends (<ItemT_1>(props: Omit<_legendap
|
|
|
33
157
|
snapToOffsets?: number[] | react_native_reanimated.SharedValue<number[] | undefined> | undefined;
|
|
34
158
|
snapToStart?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
|
|
35
159
|
snapToEnd?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
|
|
36
|
-
stickyHeaderIndices?: number[] | react_native_reanimated.SharedValue<number[] | undefined> | undefined;
|
|
37
160
|
disableIntervalMomentum?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
|
|
38
161
|
disableScrollViewPanResponder?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
|
|
39
162
|
StickyHeaderComponent?: React.ComponentType<any> | react_native_reanimated.SharedValue<React.ComponentType<any> | undefined> | undefined;
|
|
@@ -137,26 +260,16 @@ declare const LegendList: <ItemT, ListT extends (<ItemT_1>(props: Omit<_legendap
|
|
|
137
260
|
bouncesZoom?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
|
|
138
261
|
canCancelContentTouches?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
|
|
139
262
|
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
263
|
contentInsetAdjustmentBehavior?: "always" | "never" | "automatic" | "scrollableAxes" | react_native_reanimated.SharedValue<"always" | "never" | "automatic" | "scrollableAxes" | undefined> | undefined;
|
|
143
264
|
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
265
|
maximumZoomScale?: number | react_native_reanimated.SharedValue<number | undefined> | undefined;
|
|
152
266
|
minimumZoomScale?: number | react_native_reanimated.SharedValue<number | undefined> | undefined;
|
|
153
267
|
onScrollAnimationEnd?: (() => void) | react_native_reanimated.SharedValue<(() => void) | undefined> | undefined;
|
|
154
268
|
pinchGestureEnabled?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
|
|
155
|
-
scrollEventThrottle?: number | react_native_reanimated.SharedValue<number | undefined> | undefined;
|
|
156
269
|
scrollIndicatorInsets?: Insets | react_native_reanimated.SharedValue<Insets | undefined> | undefined;
|
|
157
270
|
scrollToOverflowEnabled?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
|
|
158
271
|
scrollsToTop?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
|
|
159
|
-
snapToAlignment?: "
|
|
272
|
+
snapToAlignment?: "end" | "start" | "center" | react_native_reanimated.SharedValue<"end" | "start" | "center" | undefined> | undefined;
|
|
160
273
|
onScrollToTop?: ((event: react_native.NativeSyntheticEvent<react_native.NativeScrollEvent>) => void) | react_native_reanimated.SharedValue<((event: react_native.NativeSyntheticEvent<react_native.NativeScrollEvent>) => void) | undefined> | undefined;
|
|
161
274
|
zoomScale?: number | react_native_reanimated.SharedValue<number | undefined> | undefined;
|
|
162
275
|
endFillColor?: react_native.ColorValue | react_native_reanimated.SharedValue<react_native.ColorValue | undefined> | undefined;
|
|
@@ -166,8 +279,8 @@ declare const LegendList: <ItemT, ListT extends (<ItemT_1>(props: Omit<_legendap
|
|
|
166
279
|
fadingEdgeLength?: number | react_native_reanimated.SharedValue<number | undefined> | undefined;
|
|
167
280
|
persistentScrollbar?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
|
|
168
281
|
} & {
|
|
169
|
-
style?: react_native.StyleProp<react_native_reanimated.AnimatedStyle<react_native.StyleProp<react_native.ViewStyle>>>;
|
|
170
282
|
contentContainerStyle?: react_native.StyleProp<react_native_reanimated.AnimatedStyle<react_native.StyleProp<react_native.ViewStyle>>>;
|
|
283
|
+
style?: react_native.StyleProp<react_native_reanimated.AnimatedStyle<react_native.StyleProp<react_native.ViewStyle>>>;
|
|
171
284
|
indicatorStyle?: react_native.StyleProp<react_native_reanimated.AnimatedStyle<"default" | "black" | "white" | undefined>>;
|
|
172
285
|
} & {
|
|
173
286
|
layout?: react_native_reanimated.BaseAnimationBuilder | react_native_reanimated.LayoutAnimationFunction | typeof react_native_reanimated.BaseAnimationBuilder;
|
|
@@ -177,122 +290,9 @@ declare const LegendList: <ItemT, ListT extends (<ItemT_1>(props: Omit<_legendap
|
|
|
177
290
|
sharedTransitionTag?: string;
|
|
178
291
|
sharedTransitionStyle?: react_native_reanimated.SharedTransition;
|
|
179
292
|
}> | 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;
|
|
191
293
|
} & {
|
|
192
294
|
ref?: React.Ref<LegendListRef>;
|
|
193
|
-
}) => React.ReactElement | null)
|
|
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
|
-
suggestEstimatedItemSize?: boolean;
|
|
241
|
-
viewabilityConfig?: _legendapp_list.ViewabilityConfig;
|
|
242
|
-
viewabilityConfigCallbackPairs?: _legendapp_list.ViewabilityConfigCallbackPairs | undefined;
|
|
243
|
-
waitForInitialLayout?: boolean;
|
|
244
|
-
} & React.RefAttributes<LegendListRef>) => React.ReactNode) | react_native.Animated.AnimatedComponent<(<T>(props: Omit<Omit<react_native.ScrollViewProps, "scrollEventThrottle">, "removeClippedSubviews" | "stickyHeaderIndices" | "contentInset" | "contentOffset" | "maintainVisibleContentPosition"> & {
|
|
245
|
-
alignItemsAtEnd?: boolean;
|
|
246
|
-
columnWrapperStyle?: _legendapp_list.ColumnWrapperStyle;
|
|
247
|
-
data: readonly T[];
|
|
248
|
-
drawDistance?: number;
|
|
249
|
-
estimatedItemSize?: number;
|
|
250
|
-
extraData?: any;
|
|
251
|
-
getEstimatedItemSize?: ((index: number, item: T) => number) | undefined;
|
|
252
|
-
initialContainerPoolRatio?: number | undefined;
|
|
253
|
-
initialScrollOffset?: number;
|
|
254
|
-
initialScrollIndex?: number;
|
|
255
|
-
ItemSeparatorComponent?: React.ComponentType<{
|
|
256
|
-
leadingItem: T;
|
|
257
|
-
}> | undefined;
|
|
258
|
-
keyExtractor?: ((item: T, index: number) => string) | undefined;
|
|
259
|
-
ListEmptyComponent?: React.ComponentType<any> | React.ReactElement | null | undefined;
|
|
260
|
-
ListFooterComponent?: React.ComponentType<any> | React.ReactElement | null | undefined;
|
|
261
|
-
ListFooterComponentStyle?: react_native.StyleProp<react_native.ViewStyle> | undefined;
|
|
262
|
-
ListHeaderComponent?: React.ComponentType<any> | React.ReactElement | null | undefined;
|
|
263
|
-
ListHeaderComponentStyle?: react_native.StyleProp<react_native.ViewStyle> | undefined;
|
|
264
|
-
maintainScrollAtEnd?: boolean;
|
|
265
|
-
maintainScrollAtEndThreshold?: number;
|
|
266
|
-
maintainVisibleContentPosition?: boolean;
|
|
267
|
-
numColumns?: number;
|
|
268
|
-
onEndReached?: ((info: {
|
|
269
|
-
distanceFromEnd: number;
|
|
270
|
-
}) => void) | null | undefined;
|
|
271
|
-
onEndReachedThreshold?: number | null | undefined;
|
|
272
|
-
onItemSizeChanged?: ((info: {
|
|
273
|
-
size: number;
|
|
274
|
-
previous: number;
|
|
275
|
-
index: number;
|
|
276
|
-
itemKey: string;
|
|
277
|
-
itemData: T;
|
|
278
|
-
}) => void) | undefined;
|
|
279
|
-
onRefresh?: () => void;
|
|
280
|
-
onStartReached?: ((info: {
|
|
281
|
-
distanceFromStart: number;
|
|
282
|
-
}) => void) | null | undefined;
|
|
283
|
-
onStartReachedThreshold?: number | null | undefined;
|
|
284
|
-
onViewableItemsChanged?: _legendapp_list.OnViewableItemsChanged | undefined;
|
|
285
|
-
progressViewOffset?: number;
|
|
286
|
-
recycleItems?: boolean;
|
|
287
|
-
refScrollView?: React.Ref<react_native.ScrollView>;
|
|
288
|
-
refreshing?: boolean;
|
|
289
|
-
renderItem?: ((props: _legendapp_list.LegendListRenderItemProps<T>) => React.ReactNode) | undefined;
|
|
290
|
-
renderScrollComponent?: (props: react_native.ScrollViewProps) => React.ReactElement<react_native.ScrollViewProps>;
|
|
291
|
-
suggestEstimatedItemSize?: boolean;
|
|
292
|
-
viewabilityConfig?: _legendapp_list.ViewabilityConfig;
|
|
293
|
-
viewabilityConfigCallbackPairs?: _legendapp_list.ViewabilityConfigCallbackPairs | undefined;
|
|
294
|
-
waitForInitialLayout?: boolean;
|
|
295
|
-
} & React.RefAttributes<LegendListRef>) => React.ReactNode)> = <T>(props: Omit<Omit<react_native.ScrollViewProps, "scrollEventThrottle">, "removeClippedSubviews" | "stickyHeaderIndices" | "contentInset" | "contentOffset" | "maintainVisibleContentPosition"> & {
|
|
295
|
+
}) => React.ReactElement | null) = <T>(props: Omit<Omit<react_native.ScrollViewProps, "scrollEventThrottle">, "contentOffset" | "contentInset" | "maintainVisibleContentPosition" | "stickyHeaderIndices" | "removeClippedSubviews"> & {
|
|
296
296
|
alignItemsAtEnd?: boolean;
|
|
297
297
|
columnWrapperStyle?: _legendapp_list.ColumnWrapperStyle;
|
|
298
298
|
data: readonly T[];
|
|
@@ -343,7 +343,7 @@ declare const LegendList: <ItemT, ListT extends (<ItemT_1>(props: Omit<_legendap
|
|
|
343
343
|
viewabilityConfig?: _legendapp_list.ViewabilityConfig;
|
|
344
344
|
viewabilityConfigCallbackPairs?: _legendapp_list.ViewabilityConfigCallbackPairs | undefined;
|
|
345
345
|
waitForInitialLayout?: boolean;
|
|
346
|
-
} & React.RefAttributes<LegendListRef>) => React.ReactNode>(props: Omit<Omit<react_native.ScrollViewProps, "scrollEventThrottle">, "
|
|
346
|
+
} & React.RefAttributes<LegendListRef>) => React.ReactNode>(props: Omit<Omit<react_native.ScrollViewProps, "scrollEventThrottle">, "contentOffset" | "contentInset" | "maintainVisibleContentPosition" | "stickyHeaderIndices" | "removeClippedSubviews"> & {
|
|
347
347
|
alignItemsAtEnd?: boolean;
|
|
348
348
|
columnWrapperStyle?: _legendapp_list.ColumnWrapperStyle;
|
|
349
349
|
data: readonly ItemT[];
|
package/keyboard-controller.d.ts
CHANGED
|
@@ -1,16 +1,141 @@
|
|
|
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 (<
|
|
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) | 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
|
+
} & React.RefAttributes<LegendListRef>) => React.ReactNode) | react_native.Animated.AnimatedComponent<(<T>(props: Omit<Omit<react_native.ScrollViewProps, "scrollEventThrottle">, "contentOffset" | "contentInset" | "maintainVisibleContentPosition" | "stickyHeaderIndices" | "removeClippedSubviews"> & {
|
|
62
|
+
alignItemsAtEnd?: boolean;
|
|
63
|
+
columnWrapperStyle?: _legendapp_list.ColumnWrapperStyle;
|
|
64
|
+
data: readonly T[];
|
|
65
|
+
drawDistance?: number;
|
|
66
|
+
estimatedItemSize?: number;
|
|
67
|
+
extraData?: any;
|
|
68
|
+
getEstimatedItemSize?: ((index: number, item: T) => number) | undefined;
|
|
69
|
+
initialContainerPoolRatio?: number | undefined;
|
|
70
|
+
initialScrollOffset?: number;
|
|
71
|
+
initialScrollIndex?: number;
|
|
72
|
+
ItemSeparatorComponent?: React.ComponentType<{
|
|
73
|
+
leadingItem: T;
|
|
74
|
+
}> | undefined;
|
|
75
|
+
keyExtractor?: ((item: T, index: number) => string) | undefined;
|
|
76
|
+
ListEmptyComponent?: React.ComponentType<any> | React.ReactElement | null | undefined;
|
|
77
|
+
ListFooterComponent?: React.ComponentType<any> | React.ReactElement | null | undefined;
|
|
78
|
+
ListFooterComponentStyle?: react_native.StyleProp<react_native.ViewStyle> | undefined;
|
|
79
|
+
ListHeaderComponent?: React.ComponentType<any> | React.ReactElement | null | undefined;
|
|
80
|
+
ListHeaderComponentStyle?: react_native.StyleProp<react_native.ViewStyle> | undefined;
|
|
81
|
+
maintainScrollAtEnd?: boolean;
|
|
82
|
+
maintainScrollAtEndThreshold?: number;
|
|
83
|
+
maintainVisibleContentPosition?: boolean;
|
|
84
|
+
numColumns?: number;
|
|
85
|
+
onEndReached?: ((info: {
|
|
86
|
+
distanceFromEnd: number;
|
|
87
|
+
}) => void) | null | undefined;
|
|
88
|
+
onEndReachedThreshold?: number | null | undefined;
|
|
89
|
+
onItemSizeChanged?: ((info: {
|
|
90
|
+
size: number;
|
|
91
|
+
previous: number;
|
|
92
|
+
index: number;
|
|
93
|
+
itemKey: string;
|
|
94
|
+
itemData: T;
|
|
95
|
+
}) => void) | undefined;
|
|
96
|
+
onRefresh?: () => void;
|
|
97
|
+
onStartReached?: ((info: {
|
|
98
|
+
distanceFromStart: number;
|
|
99
|
+
}) => void) | null | undefined;
|
|
100
|
+
onStartReachedThreshold?: number | null | undefined;
|
|
101
|
+
onViewableItemsChanged?: _legendapp_list.OnViewableItemsChanged | undefined;
|
|
102
|
+
progressViewOffset?: number;
|
|
103
|
+
recycleItems?: boolean;
|
|
104
|
+
refScrollView?: React.Ref<react_native.ScrollView>;
|
|
105
|
+
refreshing?: boolean;
|
|
106
|
+
renderItem?: ((props: _legendapp_list.LegendListRenderItemProps<T>) => React.ReactNode) | undefined;
|
|
107
|
+
renderScrollComponent?: (props: react_native.ScrollViewProps) => React.ReactElement<react_native.ScrollViewProps>;
|
|
108
|
+
suggestEstimatedItemSize?: boolean;
|
|
109
|
+
viewabilityConfig?: _legendapp_list.ViewabilityConfig;
|
|
110
|
+
viewabilityConfigCallbackPairs?: _legendapp_list.ViewabilityConfigCallbackPairs | undefined;
|
|
111
|
+
waitForInitialLayout?: boolean;
|
|
112
|
+
} & React.RefAttributes<LegendListRef>) => React.ReactNode)> | (<ItemT_1>(props: Omit<_legendapp_list_reanimated.AnimatedLegendListPropsBase<ItemT_1>, "refLegendList"> & {
|
|
11
113
|
getEstimatedItemSize?: ((index: number, item: ItemT_1) => number) | undefined;
|
|
114
|
+
ItemSeparatorComponent?: React.ComponentType<{
|
|
115
|
+
leadingItem: ItemT_1;
|
|
116
|
+
}> | undefined;
|
|
12
117
|
keyExtractor?: ((item: ItemT_1, index: number) => string) | undefined;
|
|
118
|
+
onItemSizeChanged?: ((info: {
|
|
119
|
+
size: number;
|
|
120
|
+
previous: number;
|
|
121
|
+
index: number;
|
|
122
|
+
itemKey: string;
|
|
123
|
+
itemData: ItemT_1;
|
|
124
|
+
}) => void) | undefined;
|
|
125
|
+
renderItem?: ((props: _legendapp_list.LegendListRenderItemProps<ItemT_1>) => React.ReactNode) | undefined;
|
|
13
126
|
animatedProps?: Partial<{
|
|
127
|
+
contentOffset?: react_native.PointProp | react_native_reanimated.SharedValue<react_native.PointProp | undefined> | undefined;
|
|
128
|
+
contentInset?: Insets | react_native_reanimated.SharedValue<Insets | undefined> | undefined;
|
|
129
|
+
maintainVisibleContentPosition?: {
|
|
130
|
+
autoscrollToTopThreshold?: number | null | undefined;
|
|
131
|
+
minIndexForVisible: number;
|
|
132
|
+
} | react_native_reanimated.SharedValue<{
|
|
133
|
+
autoscrollToTopThreshold?: number | null | undefined;
|
|
134
|
+
minIndexForVisible: number;
|
|
135
|
+
} | null | undefined> | null | undefined;
|
|
136
|
+
stickyHeaderIndices?: number[] | react_native_reanimated.SharedValue<number[] | undefined> | undefined;
|
|
137
|
+
removeClippedSubviews?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
|
|
138
|
+
scrollEventThrottle?: number | react_native_reanimated.SharedValue<number | undefined> | undefined;
|
|
14
139
|
decelerationRate?: number | "fast" | "normal" | react_native_reanimated.SharedValue<number | "fast" | "normal" | undefined> | undefined;
|
|
15
140
|
horizontal?: boolean | react_native_reanimated.SharedValue<boolean | null | undefined> | null | undefined;
|
|
16
141
|
invertStickyHeaders?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
|
|
@@ -24,7 +149,6 @@ declare const LegendList: <ItemT, ListT extends (<ItemT_1>(props: Omit<_legendap
|
|
|
24
149
|
onMomentumScrollBegin?: ((event: react_native.NativeSyntheticEvent<react_native.NativeScrollEvent>) => void) | react_native_reanimated.SharedValue<((event: react_native.NativeSyntheticEvent<react_native.NativeScrollEvent>) => void) | undefined> | undefined;
|
|
25
150
|
pagingEnabled?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
|
|
26
151
|
scrollEnabled?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
|
|
27
|
-
removeClippedSubviews?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
|
|
28
152
|
showsHorizontalScrollIndicator?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
|
|
29
153
|
showsVerticalScrollIndicator?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
|
|
30
154
|
stickyHeaderHiddenOnScroll?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
|
|
@@ -33,7 +157,6 @@ declare const LegendList: <ItemT, ListT extends (<ItemT_1>(props: Omit<_legendap
|
|
|
33
157
|
snapToOffsets?: number[] | react_native_reanimated.SharedValue<number[] | undefined> | undefined;
|
|
34
158
|
snapToStart?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
|
|
35
159
|
snapToEnd?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
|
|
36
|
-
stickyHeaderIndices?: number[] | react_native_reanimated.SharedValue<number[] | undefined> | undefined;
|
|
37
160
|
disableIntervalMomentum?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
|
|
38
161
|
disableScrollViewPanResponder?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
|
|
39
162
|
StickyHeaderComponent?: React.ComponentType<any> | react_native_reanimated.SharedValue<React.ComponentType<any> | undefined> | undefined;
|
|
@@ -137,26 +260,16 @@ declare const LegendList: <ItemT, ListT extends (<ItemT_1>(props: Omit<_legendap
|
|
|
137
260
|
bouncesZoom?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
|
|
138
261
|
canCancelContentTouches?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
|
|
139
262
|
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
263
|
contentInsetAdjustmentBehavior?: "always" | "never" | "automatic" | "scrollableAxes" | react_native_reanimated.SharedValue<"always" | "never" | "automatic" | "scrollableAxes" | undefined> | undefined;
|
|
143
264
|
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
265
|
maximumZoomScale?: number | react_native_reanimated.SharedValue<number | undefined> | undefined;
|
|
152
266
|
minimumZoomScale?: number | react_native_reanimated.SharedValue<number | undefined> | undefined;
|
|
153
267
|
onScrollAnimationEnd?: (() => void) | react_native_reanimated.SharedValue<(() => void) | undefined> | undefined;
|
|
154
268
|
pinchGestureEnabled?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
|
|
155
|
-
scrollEventThrottle?: number | react_native_reanimated.SharedValue<number | undefined> | undefined;
|
|
156
269
|
scrollIndicatorInsets?: Insets | react_native_reanimated.SharedValue<Insets | undefined> | undefined;
|
|
157
270
|
scrollToOverflowEnabled?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
|
|
158
271
|
scrollsToTop?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
|
|
159
|
-
snapToAlignment?: "
|
|
272
|
+
snapToAlignment?: "end" | "start" | "center" | react_native_reanimated.SharedValue<"end" | "start" | "center" | undefined> | undefined;
|
|
160
273
|
onScrollToTop?: ((event: react_native.NativeSyntheticEvent<react_native.NativeScrollEvent>) => void) | react_native_reanimated.SharedValue<((event: react_native.NativeSyntheticEvent<react_native.NativeScrollEvent>) => void) | undefined> | undefined;
|
|
161
274
|
zoomScale?: number | react_native_reanimated.SharedValue<number | undefined> | undefined;
|
|
162
275
|
endFillColor?: react_native.ColorValue | react_native_reanimated.SharedValue<react_native.ColorValue | undefined> | undefined;
|
|
@@ -166,8 +279,8 @@ declare const LegendList: <ItemT, ListT extends (<ItemT_1>(props: Omit<_legendap
|
|
|
166
279
|
fadingEdgeLength?: number | react_native_reanimated.SharedValue<number | undefined> | undefined;
|
|
167
280
|
persistentScrollbar?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
|
|
168
281
|
} & {
|
|
169
|
-
style?: react_native.StyleProp<react_native_reanimated.AnimatedStyle<react_native.StyleProp<react_native.ViewStyle>>>;
|
|
170
282
|
contentContainerStyle?: react_native.StyleProp<react_native_reanimated.AnimatedStyle<react_native.StyleProp<react_native.ViewStyle>>>;
|
|
283
|
+
style?: react_native.StyleProp<react_native_reanimated.AnimatedStyle<react_native.StyleProp<react_native.ViewStyle>>>;
|
|
171
284
|
indicatorStyle?: react_native.StyleProp<react_native_reanimated.AnimatedStyle<"default" | "black" | "white" | undefined>>;
|
|
172
285
|
} & {
|
|
173
286
|
layout?: react_native_reanimated.BaseAnimationBuilder | react_native_reanimated.LayoutAnimationFunction | typeof react_native_reanimated.BaseAnimationBuilder;
|
|
@@ -177,122 +290,9 @@ declare const LegendList: <ItemT, ListT extends (<ItemT_1>(props: Omit<_legendap
|
|
|
177
290
|
sharedTransitionTag?: string;
|
|
178
291
|
sharedTransitionStyle?: react_native_reanimated.SharedTransition;
|
|
179
292
|
}> | 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;
|
|
191
293
|
} & {
|
|
192
294
|
ref?: React.Ref<LegendListRef>;
|
|
193
|
-
}) => React.ReactElement | null)
|
|
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
|
-
suggestEstimatedItemSize?: boolean;
|
|
241
|
-
viewabilityConfig?: _legendapp_list.ViewabilityConfig;
|
|
242
|
-
viewabilityConfigCallbackPairs?: _legendapp_list.ViewabilityConfigCallbackPairs | undefined;
|
|
243
|
-
waitForInitialLayout?: boolean;
|
|
244
|
-
} & React.RefAttributes<LegendListRef>) => React.ReactNode) | react_native.Animated.AnimatedComponent<(<T>(props: Omit<Omit<react_native.ScrollViewProps, "scrollEventThrottle">, "removeClippedSubviews" | "stickyHeaderIndices" | "contentInset" | "contentOffset" | "maintainVisibleContentPosition"> & {
|
|
245
|
-
alignItemsAtEnd?: boolean;
|
|
246
|
-
columnWrapperStyle?: _legendapp_list.ColumnWrapperStyle;
|
|
247
|
-
data: readonly T[];
|
|
248
|
-
drawDistance?: number;
|
|
249
|
-
estimatedItemSize?: number;
|
|
250
|
-
extraData?: any;
|
|
251
|
-
getEstimatedItemSize?: ((index: number, item: T) => number) | undefined;
|
|
252
|
-
initialContainerPoolRatio?: number | undefined;
|
|
253
|
-
initialScrollOffset?: number;
|
|
254
|
-
initialScrollIndex?: number;
|
|
255
|
-
ItemSeparatorComponent?: React.ComponentType<{
|
|
256
|
-
leadingItem: T;
|
|
257
|
-
}> | undefined;
|
|
258
|
-
keyExtractor?: ((item: T, index: number) => string) | undefined;
|
|
259
|
-
ListEmptyComponent?: React.ComponentType<any> | React.ReactElement | null | undefined;
|
|
260
|
-
ListFooterComponent?: React.ComponentType<any> | React.ReactElement | null | undefined;
|
|
261
|
-
ListFooterComponentStyle?: react_native.StyleProp<react_native.ViewStyle> | undefined;
|
|
262
|
-
ListHeaderComponent?: React.ComponentType<any> | React.ReactElement | null | undefined;
|
|
263
|
-
ListHeaderComponentStyle?: react_native.StyleProp<react_native.ViewStyle> | undefined;
|
|
264
|
-
maintainScrollAtEnd?: boolean;
|
|
265
|
-
maintainScrollAtEndThreshold?: number;
|
|
266
|
-
maintainVisibleContentPosition?: boolean;
|
|
267
|
-
numColumns?: number;
|
|
268
|
-
onEndReached?: ((info: {
|
|
269
|
-
distanceFromEnd: number;
|
|
270
|
-
}) => void) | null | undefined;
|
|
271
|
-
onEndReachedThreshold?: number | null | undefined;
|
|
272
|
-
onItemSizeChanged?: ((info: {
|
|
273
|
-
size: number;
|
|
274
|
-
previous: number;
|
|
275
|
-
index: number;
|
|
276
|
-
itemKey: string;
|
|
277
|
-
itemData: T;
|
|
278
|
-
}) => void) | undefined;
|
|
279
|
-
onRefresh?: () => void;
|
|
280
|
-
onStartReached?: ((info: {
|
|
281
|
-
distanceFromStart: number;
|
|
282
|
-
}) => void) | null | undefined;
|
|
283
|
-
onStartReachedThreshold?: number | null | undefined;
|
|
284
|
-
onViewableItemsChanged?: _legendapp_list.OnViewableItemsChanged | undefined;
|
|
285
|
-
progressViewOffset?: number;
|
|
286
|
-
recycleItems?: boolean;
|
|
287
|
-
refScrollView?: React.Ref<react_native.ScrollView>;
|
|
288
|
-
refreshing?: boolean;
|
|
289
|
-
renderItem?: ((props: _legendapp_list.LegendListRenderItemProps<T>) => React.ReactNode) | undefined;
|
|
290
|
-
renderScrollComponent?: (props: react_native.ScrollViewProps) => React.ReactElement<react_native.ScrollViewProps>;
|
|
291
|
-
suggestEstimatedItemSize?: boolean;
|
|
292
|
-
viewabilityConfig?: _legendapp_list.ViewabilityConfig;
|
|
293
|
-
viewabilityConfigCallbackPairs?: _legendapp_list.ViewabilityConfigCallbackPairs | undefined;
|
|
294
|
-
waitForInitialLayout?: boolean;
|
|
295
|
-
} & React.RefAttributes<LegendListRef>) => React.ReactNode)> = <T>(props: Omit<Omit<react_native.ScrollViewProps, "scrollEventThrottle">, "removeClippedSubviews" | "stickyHeaderIndices" | "contentInset" | "contentOffset" | "maintainVisibleContentPosition"> & {
|
|
295
|
+
}) => React.ReactElement | null) = <T>(props: Omit<Omit<react_native.ScrollViewProps, "scrollEventThrottle">, "contentOffset" | "contentInset" | "maintainVisibleContentPosition" | "stickyHeaderIndices" | "removeClippedSubviews"> & {
|
|
296
296
|
alignItemsAtEnd?: boolean;
|
|
297
297
|
columnWrapperStyle?: _legendapp_list.ColumnWrapperStyle;
|
|
298
298
|
data: readonly T[];
|
|
@@ -343,7 +343,7 @@ declare const LegendList: <ItemT, ListT extends (<ItemT_1>(props: Omit<_legendap
|
|
|
343
343
|
viewabilityConfig?: _legendapp_list.ViewabilityConfig;
|
|
344
344
|
viewabilityConfigCallbackPairs?: _legendapp_list.ViewabilityConfigCallbackPairs | undefined;
|
|
345
345
|
waitForInitialLayout?: boolean;
|
|
346
|
-
} & React.RefAttributes<LegendListRef>) => React.ReactNode>(props: Omit<Omit<react_native.ScrollViewProps, "scrollEventThrottle">, "
|
|
346
|
+
} & React.RefAttributes<LegendListRef>) => React.ReactNode>(props: Omit<Omit<react_native.ScrollViewProps, "scrollEventThrottle">, "contentOffset" | "contentInset" | "maintainVisibleContentPosition" | "stickyHeaderIndices" | "removeClippedSubviews"> & {
|
|
347
347
|
alignItemsAtEnd?: boolean;
|
|
348
348
|
columnWrapperStyle?: _legendapp_list.ColumnWrapperStyle;
|
|
349
349
|
data: readonly ItemT[];
|
package/package.json
CHANGED