@legendapp/list 1.0.1 → 1.0.2

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/animated.d.mts CHANGED
@@ -3,7 +3,7 @@ import * as _legendapp_list from '@legendapp/list';
3
3
  import * as react_native from 'react-native';
4
4
  import { Animated } from 'react-native';
5
5
 
6
- declare const AnimatedLegendList: Animated.AnimatedComponent<(<T>(props: Omit<Omit<react_native.ScrollViewProps, "scrollEventThrottle">, "contentOffset" | "contentInset" | "maintainVisibleContentPosition" | "stickyHeaderIndices"> & {
6
+ declare const AnimatedLegendList: Animated.AnimatedComponent<(<T>(props: Omit<Omit<react_native.ScrollViewProps, "scrollEventThrottle">, "maintainVisibleContentPosition" | "removeClippedSubviews" | "stickyHeaderIndices" | "contentInset" | "contentOffset"> & {
7
7
  alignItemsAtEnd?: boolean;
8
8
  columnWrapperStyle?: _legendapp_list.ColumnWrapperStyle;
9
9
  data: readonly T[];
package/animated.d.ts CHANGED
@@ -3,7 +3,7 @@ import * as _legendapp_list from '@legendapp/list';
3
3
  import * as react_native from 'react-native';
4
4
  import { Animated } from 'react-native';
5
5
 
6
- declare const AnimatedLegendList: Animated.AnimatedComponent<(<T>(props: Omit<Omit<react_native.ScrollViewProps, "scrollEventThrottle">, "contentOffset" | "contentInset" | "maintainVisibleContentPosition" | "stickyHeaderIndices"> & {
6
+ declare const AnimatedLegendList: Animated.AnimatedComponent<(<T>(props: Omit<Omit<react_native.ScrollViewProps, "scrollEventThrottle">, "maintainVisibleContentPosition" | "removeClippedSubviews" | "stickyHeaderIndices" | "contentInset" | "contentOffset"> & {
7
7
  alignItemsAtEnd?: boolean;
8
8
  columnWrapperStyle?: _legendapp_list.ColumnWrapperStyle;
9
9
  data: readonly T[];
package/index.d.mts CHANGED
@@ -20,7 +20,7 @@ declare class ScrollAdjustHandler {
20
20
  unPauseAdjust(): boolean;
21
21
  }
22
22
 
23
- type LegendListPropsBase<ItemT, TScrollView extends ComponentProps<typeof ScrollView> | ComponentProps<typeof react_native_reanimated__default.ScrollView>> = Omit<TScrollView, "contentOffset" | "contentInset" | "maintainVisibleContentPosition" | "stickyHeaderIndices"> & {
23
+ type LegendListPropsBase<ItemT, TScrollView extends ComponentProps<typeof ScrollView> | ComponentProps<typeof react_native_reanimated__default.ScrollView>> = Omit<TScrollView, "contentOffset" | "contentInset" | "maintainVisibleContentPosition" | "stickyHeaderIndices" | "removeClippedSubviews"> & {
24
24
  /**
25
25
  * If true, aligns items at the end of the list.
26
26
  * @default false
@@ -272,11 +272,11 @@ interface InternalState {
272
272
  } | undefined;
273
273
  enableScrollForNextCalculateItemsInView: boolean;
274
274
  minIndexSizeChanged: number | undefined;
275
- numPendingInitialLayout: number;
276
275
  queuedInitialLayout?: boolean | undefined;
277
276
  queuedCalculateItemsInView: number | undefined;
278
277
  lastBatchingAction: number;
279
278
  ignoreScrollFromCalcTotal?: boolean;
279
+ disableAveragesForScrolls?: number;
280
280
  scrollingToOffset?: number | undefined;
281
281
  averageSizes: Record<string, {
282
282
  num: number;
@@ -462,7 +462,7 @@ type TypedMemo = <T extends React.ComponentType<any>>(Component: T, propsAreEqua
462
462
  };
463
463
  declare const typedMemo: TypedMemo;
464
464
 
465
- declare const LegendList: <T>(props: Omit<Omit<react_native.ScrollViewProps, "scrollEventThrottle">, "contentOffset" | "contentInset" | "maintainVisibleContentPosition" | "stickyHeaderIndices"> & {
465
+ declare const LegendList: <T>(props: Omit<Omit<react_native.ScrollViewProps, "scrollEventThrottle">, "maintainVisibleContentPosition" | "removeClippedSubviews" | "stickyHeaderIndices" | "contentInset" | "contentOffset"> & {
466
466
  alignItemsAtEnd?: boolean;
467
467
  columnWrapperStyle?: ColumnWrapperStyle;
468
468
  data: readonly T[];
package/index.d.ts CHANGED
@@ -20,7 +20,7 @@ declare class ScrollAdjustHandler {
20
20
  unPauseAdjust(): boolean;
21
21
  }
22
22
 
23
- type LegendListPropsBase<ItemT, TScrollView extends ComponentProps<typeof ScrollView> | ComponentProps<typeof react_native_reanimated__default.ScrollView>> = Omit<TScrollView, "contentOffset" | "contentInset" | "maintainVisibleContentPosition" | "stickyHeaderIndices"> & {
23
+ type LegendListPropsBase<ItemT, TScrollView extends ComponentProps<typeof ScrollView> | ComponentProps<typeof react_native_reanimated__default.ScrollView>> = Omit<TScrollView, "contentOffset" | "contentInset" | "maintainVisibleContentPosition" | "stickyHeaderIndices" | "removeClippedSubviews"> & {
24
24
  /**
25
25
  * If true, aligns items at the end of the list.
26
26
  * @default false
@@ -272,11 +272,11 @@ interface InternalState {
272
272
  } | undefined;
273
273
  enableScrollForNextCalculateItemsInView: boolean;
274
274
  minIndexSizeChanged: number | undefined;
275
- numPendingInitialLayout: number;
276
275
  queuedInitialLayout?: boolean | undefined;
277
276
  queuedCalculateItemsInView: number | undefined;
278
277
  lastBatchingAction: number;
279
278
  ignoreScrollFromCalcTotal?: boolean;
279
+ disableAveragesForScrolls?: number;
280
280
  scrollingToOffset?: number | undefined;
281
281
  averageSizes: Record<string, {
282
282
  num: number;
@@ -462,7 +462,7 @@ type TypedMemo = <T extends React.ComponentType<any>>(Component: T, propsAreEqua
462
462
  };
463
463
  declare const typedMemo: TypedMemo;
464
464
 
465
- declare const LegendList: <T>(props: Omit<Omit<react_native.ScrollViewProps, "scrollEventThrottle">, "contentOffset" | "contentInset" | "maintainVisibleContentPosition" | "stickyHeaderIndices"> & {
465
+ declare const LegendList: <T>(props: Omit<Omit<react_native.ScrollViewProps, "scrollEventThrottle">, "maintainVisibleContentPosition" | "removeClippedSubviews" | "stickyHeaderIndices" | "contentInset" | "contentOffset"> & {
466
466
  alignItemsAtEnd?: boolean;
467
467
  columnWrapperStyle?: ColumnWrapperStyle;
468
468
  data: readonly T[];
package/index.js CHANGED
@@ -338,6 +338,9 @@ var Container = ({
338
338
  if (itemKey !== void 0) {
339
339
  const layout = event.nativeEvent.layout;
340
340
  const size = roundSize(layout[horizontal ? "width" : "height"]);
341
+ if (!IsNewArchitecture && size === 0 && layout.x === 0 && layout.y === 0) {
342
+ return;
343
+ }
341
344
  refLastSize.current = size;
342
345
  updateItemSize(itemKey, size);
343
346
  }
@@ -1002,7 +1005,8 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
1002
1005
  } else if (estimatedItemSize) {
1003
1006
  offset = index * estimatedItemSize;
1004
1007
  }
1005
- return offset / numColumnsProp - (((_a = refState.current) == null ? void 0 : _a.scrollAdjustHandler.getAppliedAdjust()) || 0);
1008
+ const adjust = peek$(ctx, "containersDidLayout") ? ((_a = refState.current) == null ? void 0 : _a.scrollAdjustHandler.getAppliedAdjust()) || 0 : 0;
1009
+ return offset / numColumnsProp - adjust;
1006
1010
  }
1007
1011
  return 0;
1008
1012
  };
@@ -1048,7 +1052,6 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
1048
1052
  scrollForNextCalculateItemsInView: void 0,
1049
1053
  enableScrollForNextCalculateItemsInView: true,
1050
1054
  minIndexSizeChanged: 0,
1051
- numPendingInitialLayout: 0,
1052
1055
  queuedCalculateItemsInView: 0,
1053
1056
  lastBatchingAction: Date.now(),
1054
1057
  averageSizes: {},
@@ -1131,6 +1134,9 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
1131
1134
  queueMicrotask(() => {
1132
1135
  scrollToIndex({ index: initialScrollIndex, animated: false });
1133
1136
  requestAnimationFrame(() => {
1137
+ if (!IsNewArchitecture) {
1138
+ scrollToIndex({ index: initialScrollIndex, animated: false });
1139
+ }
1134
1140
  set$(ctx, "containersDidLayout", true);
1135
1141
  });
1136
1142
  });
@@ -1309,7 +1315,8 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
1309
1315
  positions,
1310
1316
  columns,
1311
1317
  scrollAdjustHandler,
1312
- scrollVelocity: speed
1318
+ scrollVelocity: speed,
1319
+ disableAveragesForScrolls
1313
1320
  } = state;
1314
1321
  if (!data || scrollLength === 0) {
1315
1322
  return;
@@ -1320,6 +1327,7 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
1320
1327
  const previousScrollAdjust = scrollAdjustHandler.getAppliedAdjust();
1321
1328
  const scrollExtra = Math.max(-16, Math.min(16, speed)) * 16;
1322
1329
  let scrollState = state.scroll;
1330
+ const useAverageSize = !disableAveragesForScrolls;
1323
1331
  if (!state.queuedInitialLayout && initialScrollIndex) {
1324
1332
  const updatedOffset = calculateOffsetForIndex(initialScrollIndex);
1325
1333
  scrollState = updatedOffset;
@@ -1371,13 +1379,7 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
1371
1379
  }
1372
1380
  const top2 = newPosition || positions.get(id);
1373
1381
  if (top2 !== void 0) {
1374
- const size = getItemSize(
1375
- id,
1376
- i,
1377
- data[i],
1378
- /*useAverageSize*/
1379
- true
1380
- );
1382
+ const size = getItemSize(id, i, data[i], useAverageSize);
1381
1383
  const bottom = top2 + size;
1382
1384
  if (bottom > scroll - scrollBuffer) {
1383
1385
  loopStart = i;
@@ -1407,13 +1409,7 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
1407
1409
  };
1408
1410
  for (let i = Math.max(0, loopStart); i < data.length; i++) {
1409
1411
  const id = getId(i);
1410
- const size = getItemSize(
1411
- id,
1412
- i,
1413
- data[i],
1414
- /*useAverageSize*/
1415
- true
1416
- );
1412
+ const size = getItemSize(id, i, data[i], useAverageSize);
1417
1413
  maxSizeInRow = Math.max(maxSizeInRow, size);
1418
1414
  if (top === void 0 || id === ((_a = state.anchorElement) == null ? void 0 : _a.id)) {
1419
1415
  top = getInitialTop(i);
@@ -1571,9 +1567,6 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
1571
1567
  }
1572
1568
  }
1573
1569
  }
1574
- if (state.numPendingInitialLayout === 0) {
1575
- state.numPendingInitialLayout = state.endBuffered - state.startBuffered + 1;
1576
- }
1577
1570
  if (!state.queuedInitialLayout && endBuffered !== null) {
1578
1571
  let areAllKnown = true;
1579
1572
  for (let i = startBuffered; areAllKnown && i <= endBuffered; i++) {
@@ -1711,8 +1704,7 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
1711
1704
  }
1712
1705
  const { scrollLength, scroll } = refState.current;
1713
1706
  const distanceFromTop = scroll;
1714
- const distanceFromTopAbs = Math.abs(distanceFromTop);
1715
- refState.current.isAtTop = distanceFromTopAbs < 0;
1707
+ refState.current.isAtTop = distanceFromTop <= 0;
1716
1708
  refState.current.isStartReached = checkThreshold(
1717
1709
  distanceFromTop,
1718
1710
  false,
@@ -1733,6 +1725,7 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
1733
1725
  if (state) {
1734
1726
  state.data = dataProp;
1735
1727
  if (!isFirst2) {
1728
+ state.disableAveragesForScrolls = 2;
1736
1729
  refState.current.scrollForNextCalculateItemsInView = void 0;
1737
1730
  const numContainers = peek$(ctx, "numContainers");
1738
1731
  for (let i = 0; i < numContainers; i++) {
@@ -1958,15 +1951,7 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
1958
1951
  state.minIndexSizeChanged = state.minIndexSizeChanged !== void 0 ? Math.min(state.minIndexSizeChanged, index) : index;
1959
1952
  const prevSize = getItemSize(itemKey, index, data);
1960
1953
  let needsCalculate = false;
1961
- let needsUpdateContainersDidLayout = false;
1962
- if (state.numPendingInitialLayout > 0) {
1963
- state.numPendingInitialLayout--;
1964
- if (state.numPendingInitialLayout === 0) {
1965
- needsCalculate = true;
1966
- state.numPendingInitialLayout = -1;
1967
- needsUpdateContainersDidLayout = true;
1968
- }
1969
- }
1954
+ const needsUpdateContainersDidLayout = !peek$(ctx, "containersDidLayout");
1970
1955
  sizesKnown.set(itemKey, size);
1971
1956
  const itemType = "";
1972
1957
  let averages = averageSizes[itemType];
@@ -1978,7 +1963,7 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
1978
1963
  }
1979
1964
  averages.avg = (averages.avg * averages.num + size) / (averages.num + 1);
1980
1965
  averages.num++;
1981
- if (!prevSize || Math.abs(prevSize - size) > 0.5) {
1966
+ if (!prevSize || Math.abs(prevSize - size) > 0.1) {
1982
1967
  let diff;
1983
1968
  needsCalculate = true;
1984
1969
  if (numColumns > 1) {
@@ -2022,7 +2007,7 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
2022
2007
  if (needsUpdateContainersDidLayout || !fromFixGaps && needsCalculate && isInView) {
2023
2008
  const scrollVelocity = state.scrollVelocity;
2024
2009
  let didCalculate = false;
2025
- if ((Number.isNaN(scrollVelocity) || Math.abs(scrollVelocity) < 1) && (!waitForInitialLayout || state.numPendingInitialLayout < 0)) {
2010
+ if ((Number.isNaN(scrollVelocity) || Math.abs(scrollVelocity) < 1) && (!waitForInitialLayout || needsUpdateContainersDidLayout)) {
2026
2011
  if (Date.now() - state.lastBatchingAction < 500) {
2027
2012
  if (!state.queuedCalculateItemsInView) {
2028
2013
  state.queuedCalculateItemsInView = requestAnimationFrame(() => {
@@ -2035,7 +2020,7 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
2035
2020
  didCalculate = true;
2036
2021
  }
2037
2022
  }
2038
- if (!didCalculate && IsNewArchitecture) {
2023
+ if (!didCalculate && !needsUpdateContainersDidLayout && IsNewArchitecture) {
2039
2024
  fixGaps();
2040
2025
  }
2041
2026
  }
@@ -2114,6 +2099,9 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
2114
2099
  if (!fromSelf) {
2115
2100
  (_d = state.onScroll) == null ? void 0 : _d.call(state, event);
2116
2101
  }
2102
+ if (state.disableAveragesForScrolls) {
2103
+ state.disableAveragesForScrolls--;
2104
+ }
2117
2105
  },
2118
2106
  []
2119
2107
  );
package/index.mjs CHANGED
@@ -317,6 +317,9 @@ var Container = ({
317
317
  if (itemKey !== void 0) {
318
318
  const layout = event.nativeEvent.layout;
319
319
  const size = roundSize(layout[horizontal ? "width" : "height"]);
320
+ if (!IsNewArchitecture && size === 0 && layout.x === 0 && layout.y === 0) {
321
+ return;
322
+ }
320
323
  refLastSize.current = size;
321
324
  updateItemSize(itemKey, size);
322
325
  }
@@ -981,7 +984,8 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
981
984
  } else if (estimatedItemSize) {
982
985
  offset = index * estimatedItemSize;
983
986
  }
984
- return offset / numColumnsProp - (((_a = refState.current) == null ? void 0 : _a.scrollAdjustHandler.getAppliedAdjust()) || 0);
987
+ const adjust = peek$(ctx, "containersDidLayout") ? ((_a = refState.current) == null ? void 0 : _a.scrollAdjustHandler.getAppliedAdjust()) || 0 : 0;
988
+ return offset / numColumnsProp - adjust;
985
989
  }
986
990
  return 0;
987
991
  };
@@ -1027,7 +1031,6 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
1027
1031
  scrollForNextCalculateItemsInView: void 0,
1028
1032
  enableScrollForNextCalculateItemsInView: true,
1029
1033
  minIndexSizeChanged: 0,
1030
- numPendingInitialLayout: 0,
1031
1034
  queuedCalculateItemsInView: 0,
1032
1035
  lastBatchingAction: Date.now(),
1033
1036
  averageSizes: {},
@@ -1110,6 +1113,9 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
1110
1113
  queueMicrotask(() => {
1111
1114
  scrollToIndex({ index: initialScrollIndex, animated: false });
1112
1115
  requestAnimationFrame(() => {
1116
+ if (!IsNewArchitecture) {
1117
+ scrollToIndex({ index: initialScrollIndex, animated: false });
1118
+ }
1113
1119
  set$(ctx, "containersDidLayout", true);
1114
1120
  });
1115
1121
  });
@@ -1288,7 +1294,8 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
1288
1294
  positions,
1289
1295
  columns,
1290
1296
  scrollAdjustHandler,
1291
- scrollVelocity: speed
1297
+ scrollVelocity: speed,
1298
+ disableAveragesForScrolls
1292
1299
  } = state;
1293
1300
  if (!data || scrollLength === 0) {
1294
1301
  return;
@@ -1299,6 +1306,7 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
1299
1306
  const previousScrollAdjust = scrollAdjustHandler.getAppliedAdjust();
1300
1307
  const scrollExtra = Math.max(-16, Math.min(16, speed)) * 16;
1301
1308
  let scrollState = state.scroll;
1309
+ const useAverageSize = !disableAveragesForScrolls;
1302
1310
  if (!state.queuedInitialLayout && initialScrollIndex) {
1303
1311
  const updatedOffset = calculateOffsetForIndex(initialScrollIndex);
1304
1312
  scrollState = updatedOffset;
@@ -1350,13 +1358,7 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
1350
1358
  }
1351
1359
  const top2 = newPosition || positions.get(id);
1352
1360
  if (top2 !== void 0) {
1353
- const size = getItemSize(
1354
- id,
1355
- i,
1356
- data[i],
1357
- /*useAverageSize*/
1358
- true
1359
- );
1361
+ const size = getItemSize(id, i, data[i], useAverageSize);
1360
1362
  const bottom = top2 + size;
1361
1363
  if (bottom > scroll - scrollBuffer) {
1362
1364
  loopStart = i;
@@ -1386,13 +1388,7 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
1386
1388
  };
1387
1389
  for (let i = Math.max(0, loopStart); i < data.length; i++) {
1388
1390
  const id = getId(i);
1389
- const size = getItemSize(
1390
- id,
1391
- i,
1392
- data[i],
1393
- /*useAverageSize*/
1394
- true
1395
- );
1391
+ const size = getItemSize(id, i, data[i], useAverageSize);
1396
1392
  maxSizeInRow = Math.max(maxSizeInRow, size);
1397
1393
  if (top === void 0 || id === ((_a = state.anchorElement) == null ? void 0 : _a.id)) {
1398
1394
  top = getInitialTop(i);
@@ -1550,9 +1546,6 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
1550
1546
  }
1551
1547
  }
1552
1548
  }
1553
- if (state.numPendingInitialLayout === 0) {
1554
- state.numPendingInitialLayout = state.endBuffered - state.startBuffered + 1;
1555
- }
1556
1549
  if (!state.queuedInitialLayout && endBuffered !== null) {
1557
1550
  let areAllKnown = true;
1558
1551
  for (let i = startBuffered; areAllKnown && i <= endBuffered; i++) {
@@ -1690,8 +1683,7 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
1690
1683
  }
1691
1684
  const { scrollLength, scroll } = refState.current;
1692
1685
  const distanceFromTop = scroll;
1693
- const distanceFromTopAbs = Math.abs(distanceFromTop);
1694
- refState.current.isAtTop = distanceFromTopAbs < 0;
1686
+ refState.current.isAtTop = distanceFromTop <= 0;
1695
1687
  refState.current.isStartReached = checkThreshold(
1696
1688
  distanceFromTop,
1697
1689
  false,
@@ -1712,6 +1704,7 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
1712
1704
  if (state) {
1713
1705
  state.data = dataProp;
1714
1706
  if (!isFirst2) {
1707
+ state.disableAveragesForScrolls = 2;
1715
1708
  refState.current.scrollForNextCalculateItemsInView = void 0;
1716
1709
  const numContainers = peek$(ctx, "numContainers");
1717
1710
  for (let i = 0; i < numContainers; i++) {
@@ -1937,15 +1930,7 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
1937
1930
  state.minIndexSizeChanged = state.minIndexSizeChanged !== void 0 ? Math.min(state.minIndexSizeChanged, index) : index;
1938
1931
  const prevSize = getItemSize(itemKey, index, data);
1939
1932
  let needsCalculate = false;
1940
- let needsUpdateContainersDidLayout = false;
1941
- if (state.numPendingInitialLayout > 0) {
1942
- state.numPendingInitialLayout--;
1943
- if (state.numPendingInitialLayout === 0) {
1944
- needsCalculate = true;
1945
- state.numPendingInitialLayout = -1;
1946
- needsUpdateContainersDidLayout = true;
1947
- }
1948
- }
1933
+ const needsUpdateContainersDidLayout = !peek$(ctx, "containersDidLayout");
1949
1934
  sizesKnown.set(itemKey, size);
1950
1935
  const itemType = "";
1951
1936
  let averages = averageSizes[itemType];
@@ -1957,7 +1942,7 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
1957
1942
  }
1958
1943
  averages.avg = (averages.avg * averages.num + size) / (averages.num + 1);
1959
1944
  averages.num++;
1960
- if (!prevSize || Math.abs(prevSize - size) > 0.5) {
1945
+ if (!prevSize || Math.abs(prevSize - size) > 0.1) {
1961
1946
  let diff;
1962
1947
  needsCalculate = true;
1963
1948
  if (numColumns > 1) {
@@ -2001,7 +1986,7 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
2001
1986
  if (needsUpdateContainersDidLayout || !fromFixGaps && needsCalculate && isInView) {
2002
1987
  const scrollVelocity = state.scrollVelocity;
2003
1988
  let didCalculate = false;
2004
- if ((Number.isNaN(scrollVelocity) || Math.abs(scrollVelocity) < 1) && (!waitForInitialLayout || state.numPendingInitialLayout < 0)) {
1989
+ if ((Number.isNaN(scrollVelocity) || Math.abs(scrollVelocity) < 1) && (!waitForInitialLayout || needsUpdateContainersDidLayout)) {
2005
1990
  if (Date.now() - state.lastBatchingAction < 500) {
2006
1991
  if (!state.queuedCalculateItemsInView) {
2007
1992
  state.queuedCalculateItemsInView = requestAnimationFrame(() => {
@@ -2014,7 +1999,7 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
2014
1999
  didCalculate = true;
2015
2000
  }
2016
2001
  }
2017
- if (!didCalculate && IsNewArchitecture) {
2002
+ if (!didCalculate && !needsUpdateContainersDidLayout && IsNewArchitecture) {
2018
2003
  fixGaps();
2019
2004
  }
2020
2005
  }
@@ -2093,6 +2078,9 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
2093
2078
  if (!fromSelf) {
2094
2079
  (_d = state.onScroll) == null ? void 0 : _d.call(state, event);
2095
2080
  }
2081
+ if (state.disableAveragesForScrolls) {
2082
+ state.disableAveragesForScrolls--;
2083
+ }
2096
2084
  },
2097
2085
  []
2098
2086
  );
@@ -1,140 +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 (<T>(props: Omit<Omit<react_native.ScrollViewProps, "scrollEventThrottle">, "contentOffset" | "contentInset" | "maintainVisibleContentPosition" | "stickyHeaderIndices"> & {
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"> & {
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"> & {
10
+ declare const LegendList: <ItemT, ListT extends (<ItemT_1>(props: Omit<_legendapp_list_reanimated.AnimatedLegendListPropsBase<ItemT_1>, "refLegendList"> & {
113
11
  getEstimatedItemSize?: ((index: number, item: ItemT_1) => number) | undefined;
114
- ItemSeparatorComponent?: React.ComponentType<{
115
- leadingItem: ItemT_1;
116
- }> | undefined;
117
12
  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;
126
13
  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
- scrollEventThrottle?: number | react_native_reanimated.SharedValue<number | undefined> | undefined;
138
14
  decelerationRate?: number | "fast" | "normal" | react_native_reanimated.SharedValue<number | "fast" | "normal" | undefined> | undefined;
139
15
  horizontal?: boolean | react_native_reanimated.SharedValue<boolean | null | undefined> | null | undefined;
140
16
  invertStickyHeaders?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
@@ -157,6 +33,7 @@ declare const LegendList: <ItemT, ListT extends (<T>(props: Omit<Omit<react_nati
157
33
  snapToOffsets?: number[] | react_native_reanimated.SharedValue<number[] | undefined> | undefined;
158
34
  snapToStart?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
159
35
  snapToEnd?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
36
+ stickyHeaderIndices?: number[] | react_native_reanimated.SharedValue<number[] | undefined> | undefined;
160
37
  disableIntervalMomentum?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
161
38
  disableScrollViewPanResponder?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
162
39
  StickyHeaderComponent?: React.ComponentType<any> | react_native_reanimated.SharedValue<React.ComponentType<any> | undefined> | undefined;
@@ -260,16 +137,26 @@ declare const LegendList: <ItemT, ListT extends (<T>(props: Omit<Omit<react_nati
260
137
  bouncesZoom?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
261
138
  canCancelContentTouches?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
262
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;
263
142
  contentInsetAdjustmentBehavior?: "always" | "never" | "automatic" | "scrollableAxes" | react_native_reanimated.SharedValue<"always" | "never" | "automatic" | "scrollableAxes" | undefined> | undefined;
264
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;
265
151
  maximumZoomScale?: number | react_native_reanimated.SharedValue<number | undefined> | undefined;
266
152
  minimumZoomScale?: number | react_native_reanimated.SharedValue<number | undefined> | undefined;
267
153
  onScrollAnimationEnd?: (() => void) | react_native_reanimated.SharedValue<(() => void) | undefined> | undefined;
268
154
  pinchGestureEnabled?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
155
+ scrollEventThrottle?: number | react_native_reanimated.SharedValue<number | undefined> | undefined;
269
156
  scrollIndicatorInsets?: Insets | react_native_reanimated.SharedValue<Insets | undefined> | undefined;
270
157
  scrollToOverflowEnabled?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
271
158
  scrollsToTop?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
272
- snapToAlignment?: "end" | "start" | "center" | react_native_reanimated.SharedValue<"end" | "start" | "center" | undefined> | undefined;
159
+ snapToAlignment?: "center" | "start" | "end" | react_native_reanimated.SharedValue<"center" | "start" | "end" | undefined> | undefined;
273
160
  onScrollToTop?: ((event: react_native.NativeSyntheticEvent<react_native.NativeScrollEvent>) => void) | react_native_reanimated.SharedValue<((event: react_native.NativeSyntheticEvent<react_native.NativeScrollEvent>) => void) | undefined> | undefined;
274
161
  zoomScale?: number | react_native_reanimated.SharedValue<number | undefined> | undefined;
275
162
  endFillColor?: react_native.ColorValue | react_native_reanimated.SharedValue<react_native.ColorValue | undefined> | undefined;
@@ -279,8 +166,8 @@ declare const LegendList: <ItemT, ListT extends (<T>(props: Omit<Omit<react_nati
279
166
  fadingEdgeLength?: number | react_native_reanimated.SharedValue<number | undefined> | undefined;
280
167
  persistentScrollbar?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
281
168
  } & {
282
- contentContainerStyle?: react_native.StyleProp<react_native_reanimated.AnimatedStyle<react_native.StyleProp<react_native.ViewStyle>>>;
283
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>>>;
284
171
  indicatorStyle?: react_native.StyleProp<react_native_reanimated.AnimatedStyle<"default" | "black" | "white" | undefined>>;
285
172
  } & {
286
173
  layout?: react_native_reanimated.BaseAnimationBuilder | react_native_reanimated.LayoutAnimationFunction | typeof react_native_reanimated.BaseAnimationBuilder;
@@ -290,9 +177,122 @@ declare const LegendList: <ItemT, ListT extends (<T>(props: Omit<Omit<react_nati
290
177
  sharedTransitionTag?: string;
291
178
  sharedTransitionStyle?: react_native_reanimated.SharedTransition;
292
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;
293
191
  } & {
294
192
  ref?: React.Ref<LegendListRef>;
295
- }) => React.ReactElement | null) = <T>(props: Omit<Omit<react_native.ScrollViewProps, "scrollEventThrottle">, "contentOffset" | "contentInset" | "maintainVisibleContentPosition" | "stickyHeaderIndices"> & {
193
+ }) => React.ReactElement | null) | (<T>(props: Omit<Omit<react_native.ScrollViewProps, "scrollEventThrottle">, "removeClippedSubviews" | "stickyHeaderIndices" | "contentInset" | "contentOffset" | "maintainVisibleContentPosition"> & {
194
+ alignItemsAtEnd?: boolean;
195
+ columnWrapperStyle?: _legendapp_list.ColumnWrapperStyle;
196
+ data: readonly T[];
197
+ drawDistance?: number;
198
+ estimatedItemSize?: number;
199
+ extraData?: any;
200
+ getEstimatedItemSize?: ((index: number, item: T) => number) | undefined;
201
+ initialContainerPoolRatio?: number | undefined;
202
+ initialScrollOffset?: number;
203
+ initialScrollIndex?: number;
204
+ ItemSeparatorComponent?: React.ComponentType<{
205
+ leadingItem: T;
206
+ }> | undefined;
207
+ keyExtractor?: ((item: T, index: number) => string) | undefined;
208
+ ListEmptyComponent?: React.ComponentType<any> | React.ReactElement | null | undefined;
209
+ ListFooterComponent?: React.ComponentType<any> | React.ReactElement | null | undefined;
210
+ ListFooterComponentStyle?: react_native.StyleProp<react_native.ViewStyle> | undefined;
211
+ ListHeaderComponent?: React.ComponentType<any> | React.ReactElement | null | undefined;
212
+ ListHeaderComponentStyle?: react_native.StyleProp<react_native.ViewStyle> | undefined;
213
+ maintainScrollAtEnd?: boolean;
214
+ maintainScrollAtEndThreshold?: number;
215
+ maintainVisibleContentPosition?: boolean;
216
+ numColumns?: number;
217
+ onEndReached?: ((info: {
218
+ distanceFromEnd: number;
219
+ }) => void) | null | undefined;
220
+ onEndReachedThreshold?: number | null | undefined;
221
+ onItemSizeChanged?: ((info: {
222
+ size: number;
223
+ previous: number;
224
+ index: number;
225
+ itemKey: string;
226
+ itemData: T;
227
+ }) => void) | undefined;
228
+ onRefresh?: () => void;
229
+ onStartReached?: ((info: {
230
+ distanceFromStart: number;
231
+ }) => void) | null | undefined;
232
+ onStartReachedThreshold?: number | null | undefined;
233
+ onViewableItemsChanged?: _legendapp_list.OnViewableItemsChanged | undefined;
234
+ progressViewOffset?: number;
235
+ recycleItems?: boolean;
236
+ refScrollView?: React.Ref<react_native.ScrollView>;
237
+ refreshing?: boolean;
238
+ renderItem?: ((props: _legendapp_list.LegendListRenderItemProps<T>) => React.ReactNode) | 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"> & {
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 (<T>(props: Omit<Omit<react_nati
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">, "contentOffset" | "contentInset" | "maintainVisibleContentPosition" | "stickyHeaderIndices"> & {
346
+ } & React.RefAttributes<LegendListRef>) => React.ReactNode>(props: Omit<Omit<react_native.ScrollViewProps, "scrollEventThrottle">, "removeClippedSubviews" | "stickyHeaderIndices" | "contentInset" | "contentOffset" | "maintainVisibleContentPosition"> & {
347
347
  alignItemsAtEnd?: boolean;
348
348
  columnWrapperStyle?: _legendapp_list.ColumnWrapperStyle;
349
349
  data: readonly ItemT[];
@@ -1,140 +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 (<T>(props: Omit<Omit<react_native.ScrollViewProps, "scrollEventThrottle">, "contentOffset" | "contentInset" | "maintainVisibleContentPosition" | "stickyHeaderIndices"> & {
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"> & {
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"> & {
10
+ declare const LegendList: <ItemT, ListT extends (<ItemT_1>(props: Omit<_legendapp_list_reanimated.AnimatedLegendListPropsBase<ItemT_1>, "refLegendList"> & {
113
11
  getEstimatedItemSize?: ((index: number, item: ItemT_1) => number) | undefined;
114
- ItemSeparatorComponent?: React.ComponentType<{
115
- leadingItem: ItemT_1;
116
- }> | undefined;
117
12
  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;
126
13
  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
- scrollEventThrottle?: number | react_native_reanimated.SharedValue<number | undefined> | undefined;
138
14
  decelerationRate?: number | "fast" | "normal" | react_native_reanimated.SharedValue<number | "fast" | "normal" | undefined> | undefined;
139
15
  horizontal?: boolean | react_native_reanimated.SharedValue<boolean | null | undefined> | null | undefined;
140
16
  invertStickyHeaders?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
@@ -157,6 +33,7 @@ declare const LegendList: <ItemT, ListT extends (<T>(props: Omit<Omit<react_nati
157
33
  snapToOffsets?: number[] | react_native_reanimated.SharedValue<number[] | undefined> | undefined;
158
34
  snapToStart?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
159
35
  snapToEnd?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
36
+ stickyHeaderIndices?: number[] | react_native_reanimated.SharedValue<number[] | undefined> | undefined;
160
37
  disableIntervalMomentum?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
161
38
  disableScrollViewPanResponder?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
162
39
  StickyHeaderComponent?: React.ComponentType<any> | react_native_reanimated.SharedValue<React.ComponentType<any> | undefined> | undefined;
@@ -260,16 +137,26 @@ declare const LegendList: <ItemT, ListT extends (<T>(props: Omit<Omit<react_nati
260
137
  bouncesZoom?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
261
138
  canCancelContentTouches?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
262
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;
263
142
  contentInsetAdjustmentBehavior?: "always" | "never" | "automatic" | "scrollableAxes" | react_native_reanimated.SharedValue<"always" | "never" | "automatic" | "scrollableAxes" | undefined> | undefined;
264
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;
265
151
  maximumZoomScale?: number | react_native_reanimated.SharedValue<number | undefined> | undefined;
266
152
  minimumZoomScale?: number | react_native_reanimated.SharedValue<number | undefined> | undefined;
267
153
  onScrollAnimationEnd?: (() => void) | react_native_reanimated.SharedValue<(() => void) | undefined> | undefined;
268
154
  pinchGestureEnabled?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
155
+ scrollEventThrottle?: number | react_native_reanimated.SharedValue<number | undefined> | undefined;
269
156
  scrollIndicatorInsets?: Insets | react_native_reanimated.SharedValue<Insets | undefined> | undefined;
270
157
  scrollToOverflowEnabled?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
271
158
  scrollsToTop?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
272
- snapToAlignment?: "end" | "start" | "center" | react_native_reanimated.SharedValue<"end" | "start" | "center" | undefined> | undefined;
159
+ snapToAlignment?: "center" | "start" | "end" | react_native_reanimated.SharedValue<"center" | "start" | "end" | undefined> | undefined;
273
160
  onScrollToTop?: ((event: react_native.NativeSyntheticEvent<react_native.NativeScrollEvent>) => void) | react_native_reanimated.SharedValue<((event: react_native.NativeSyntheticEvent<react_native.NativeScrollEvent>) => void) | undefined> | undefined;
274
161
  zoomScale?: number | react_native_reanimated.SharedValue<number | undefined> | undefined;
275
162
  endFillColor?: react_native.ColorValue | react_native_reanimated.SharedValue<react_native.ColorValue | undefined> | undefined;
@@ -279,8 +166,8 @@ declare const LegendList: <ItemT, ListT extends (<T>(props: Omit<Omit<react_nati
279
166
  fadingEdgeLength?: number | react_native_reanimated.SharedValue<number | undefined> | undefined;
280
167
  persistentScrollbar?: boolean | react_native_reanimated.SharedValue<boolean | undefined> | undefined;
281
168
  } & {
282
- contentContainerStyle?: react_native.StyleProp<react_native_reanimated.AnimatedStyle<react_native.StyleProp<react_native.ViewStyle>>>;
283
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>>>;
284
171
  indicatorStyle?: react_native.StyleProp<react_native_reanimated.AnimatedStyle<"default" | "black" | "white" | undefined>>;
285
172
  } & {
286
173
  layout?: react_native_reanimated.BaseAnimationBuilder | react_native_reanimated.LayoutAnimationFunction | typeof react_native_reanimated.BaseAnimationBuilder;
@@ -290,9 +177,122 @@ declare const LegendList: <ItemT, ListT extends (<T>(props: Omit<Omit<react_nati
290
177
  sharedTransitionTag?: string;
291
178
  sharedTransitionStyle?: react_native_reanimated.SharedTransition;
292
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;
293
191
  } & {
294
192
  ref?: React.Ref<LegendListRef>;
295
- }) => React.ReactElement | null) = <T>(props: Omit<Omit<react_native.ScrollViewProps, "scrollEventThrottle">, "contentOffset" | "contentInset" | "maintainVisibleContentPosition" | "stickyHeaderIndices"> & {
193
+ }) => React.ReactElement | null) | (<T>(props: Omit<Omit<react_native.ScrollViewProps, "scrollEventThrottle">, "removeClippedSubviews" | "stickyHeaderIndices" | "contentInset" | "contentOffset" | "maintainVisibleContentPosition"> & {
194
+ alignItemsAtEnd?: boolean;
195
+ columnWrapperStyle?: _legendapp_list.ColumnWrapperStyle;
196
+ data: readonly T[];
197
+ drawDistance?: number;
198
+ estimatedItemSize?: number;
199
+ extraData?: any;
200
+ getEstimatedItemSize?: ((index: number, item: T) => number) | undefined;
201
+ initialContainerPoolRatio?: number | undefined;
202
+ initialScrollOffset?: number;
203
+ initialScrollIndex?: number;
204
+ ItemSeparatorComponent?: React.ComponentType<{
205
+ leadingItem: T;
206
+ }> | undefined;
207
+ keyExtractor?: ((item: T, index: number) => string) | undefined;
208
+ ListEmptyComponent?: React.ComponentType<any> | React.ReactElement | null | undefined;
209
+ ListFooterComponent?: React.ComponentType<any> | React.ReactElement | null | undefined;
210
+ ListFooterComponentStyle?: react_native.StyleProp<react_native.ViewStyle> | undefined;
211
+ ListHeaderComponent?: React.ComponentType<any> | React.ReactElement | null | undefined;
212
+ ListHeaderComponentStyle?: react_native.StyleProp<react_native.ViewStyle> | undefined;
213
+ maintainScrollAtEnd?: boolean;
214
+ maintainScrollAtEndThreshold?: number;
215
+ maintainVisibleContentPosition?: boolean;
216
+ numColumns?: number;
217
+ onEndReached?: ((info: {
218
+ distanceFromEnd: number;
219
+ }) => void) | null | undefined;
220
+ onEndReachedThreshold?: number | null | undefined;
221
+ onItemSizeChanged?: ((info: {
222
+ size: number;
223
+ previous: number;
224
+ index: number;
225
+ itemKey: string;
226
+ itemData: T;
227
+ }) => void) | undefined;
228
+ onRefresh?: () => void;
229
+ onStartReached?: ((info: {
230
+ distanceFromStart: number;
231
+ }) => void) | null | undefined;
232
+ onStartReachedThreshold?: number | null | undefined;
233
+ onViewableItemsChanged?: _legendapp_list.OnViewableItemsChanged | undefined;
234
+ progressViewOffset?: number;
235
+ recycleItems?: boolean;
236
+ refScrollView?: React.Ref<react_native.ScrollView>;
237
+ refreshing?: boolean;
238
+ renderItem?: ((props: _legendapp_list.LegendListRenderItemProps<T>) => React.ReactNode) | 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"> & {
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 (<T>(props: Omit<Omit<react_nati
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">, "contentOffset" | "contentInset" | "maintainVisibleContentPosition" | "stickyHeaderIndices"> & {
346
+ } & React.RefAttributes<LegendListRef>) => React.ReactNode>(props: Omit<Omit<react_native.ScrollViewProps, "scrollEventThrottle">, "removeClippedSubviews" | "stickyHeaderIndices" | "contentInset" | "contentOffset" | "maintainVisibleContentPosition"> & {
347
347
  alignItemsAtEnd?: boolean;
348
348
  columnWrapperStyle?: _legendapp_list.ColumnWrapperStyle;
349
349
  data: readonly ItemT[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@legendapp/list",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Legend List is a drop-in replacement for FlatList with much better performance and supporting dynamically sized items.",
5
5
  "sideEffects": false,
6
6
  "private": false,