@legendapp/list 1.0.0-beta.47 → 1.0.0-beta.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +3 -3
- package/index.mjs +3 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -251,9 +251,9 @@ var ANCHORED_POSITION_OUT_OF_VIEW = {
|
|
|
251
251
|
};
|
|
252
252
|
var ENABLE_DEVMODE = __DEV__ && false;
|
|
253
253
|
var ENABLE_DEBUG_VIEW = __DEV__ && false;
|
|
254
|
+
var IsNewArchitecture = global.nativeFabricUIManager != null;
|
|
254
255
|
|
|
255
256
|
// src/Container.tsx
|
|
256
|
-
var isNewArchitecture = global.nativeFabricUIManager != null;
|
|
257
257
|
var Container = ({
|
|
258
258
|
id,
|
|
259
259
|
recycleItems,
|
|
@@ -324,7 +324,7 @@ var Container = ({
|
|
|
324
324
|
updateItemSize(itemKey, size);
|
|
325
325
|
}
|
|
326
326
|
};
|
|
327
|
-
if (
|
|
327
|
+
if (IsNewArchitecture) {
|
|
328
328
|
React6.useLayoutEffect(() => {
|
|
329
329
|
var _a, _b;
|
|
330
330
|
if (itemKey !== void 0) {
|
|
@@ -1975,7 +1975,7 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
|
|
|
1975
1975
|
didCalculate = true;
|
|
1976
1976
|
}
|
|
1977
1977
|
}
|
|
1978
|
-
if (!didCalculate) {
|
|
1978
|
+
if (!didCalculate && IsNewArchitecture) {
|
|
1979
1979
|
fixGaps();
|
|
1980
1980
|
}
|
|
1981
1981
|
}
|
package/index.mjs
CHANGED
|
@@ -230,9 +230,9 @@ var ANCHORED_POSITION_OUT_OF_VIEW = {
|
|
|
230
230
|
};
|
|
231
231
|
var ENABLE_DEVMODE = __DEV__ && false;
|
|
232
232
|
var ENABLE_DEBUG_VIEW = __DEV__ && false;
|
|
233
|
+
var IsNewArchitecture = global.nativeFabricUIManager != null;
|
|
233
234
|
|
|
234
235
|
// src/Container.tsx
|
|
235
|
-
var isNewArchitecture = global.nativeFabricUIManager != null;
|
|
236
236
|
var Container = ({
|
|
237
237
|
id,
|
|
238
238
|
recycleItems,
|
|
@@ -303,7 +303,7 @@ var Container = ({
|
|
|
303
303
|
updateItemSize(itemKey, size);
|
|
304
304
|
}
|
|
305
305
|
};
|
|
306
|
-
if (
|
|
306
|
+
if (IsNewArchitecture) {
|
|
307
307
|
useLayoutEffect(() => {
|
|
308
308
|
var _a, _b;
|
|
309
309
|
if (itemKey !== void 0) {
|
|
@@ -1954,7 +1954,7 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
|
|
|
1954
1954
|
didCalculate = true;
|
|
1955
1955
|
}
|
|
1956
1956
|
}
|
|
1957
|
-
if (!didCalculate) {
|
|
1957
|
+
if (!didCalculate && IsNewArchitecture) {
|
|
1958
1958
|
fixGaps();
|
|
1959
1959
|
}
|
|
1960
1960
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@legendapp/list",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.48",
|
|
4
4
|
"description": "Legend List aims to be a drop-in replacement for FlatList with much better performance and supporting dynamically sized items.",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"private": false,
|