@legendapp/list 2.0.0-beta.5 → 2.0.0-beta.6

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.
Files changed (3) hide show
  1. package/index.js +2 -1
  2. package/index.mjs +2 -1
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -1456,6 +1456,7 @@ function maybeUpdateViewabilityCallback(ctx, configId, containerId, viewToken) {
1456
1456
  const cb = ctx.mapViewabilityCallbacks.get(key);
1457
1457
  cb == null ? void 0 : cb(viewToken);
1458
1458
  }
1459
+ var batchedUpdates = reactNative.unstable_batchedUpdates || ((callback) => callback());
1459
1460
 
1460
1461
  // src/utils/checkAllSizesKnown.ts
1461
1462
  function checkAllSizesKnown(state) {
@@ -1799,7 +1800,7 @@ function handleStickyRecycling(ctx, state, stickyArray, scroll, scrollBuffer, pe
1799
1800
  }
1800
1801
  }
1801
1802
  function calculateItemsInView(ctx, state, params = {}) {
1802
- reactNative.unstable_batchedUpdates(() => {
1803
+ batchedUpdates(() => {
1803
1804
  var _a, _b, _c, _d, _e, _f, _g, _h;
1804
1805
  const {
1805
1806
  columns,
package/index.mjs CHANGED
@@ -1435,6 +1435,7 @@ function maybeUpdateViewabilityCallback(ctx, configId, containerId, viewToken) {
1435
1435
  const cb = ctx.mapViewabilityCallbacks.get(key);
1436
1436
  cb == null ? void 0 : cb(viewToken);
1437
1437
  }
1438
+ var batchedUpdates = unstable_batchedUpdates || ((callback) => callback());
1438
1439
 
1439
1440
  // src/utils/checkAllSizesKnown.ts
1440
1441
  function checkAllSizesKnown(state) {
@@ -1778,7 +1779,7 @@ function handleStickyRecycling(ctx, state, stickyArray, scroll, scrollBuffer, pe
1778
1779
  }
1779
1780
  }
1780
1781
  function calculateItemsInView(ctx, state, params = {}) {
1781
- unstable_batchedUpdates(() => {
1782
+ batchedUpdates(() => {
1782
1783
  var _a, _b, _c, _d, _e, _f, _g, _h;
1783
1784
  const {
1784
1785
  columns,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@legendapp/list",
3
- "version": "2.0.0-beta.5",
3
+ "version": "2.0.0-beta.6",
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,