@legendapp/list 2.0.3 → 2.0.4

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
@@ -2859,9 +2859,10 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
2859
2859
  set$(ctx, "extraData", extraData);
2860
2860
  }, [extraData]);
2861
2861
  React3.useLayoutEffect(() => {
2862
+ var _a2;
2862
2863
  if (IsNewArchitecture) {
2863
2864
  let measured;
2864
- refScroller.current.measure((x, y, width, height) => {
2865
+ (_a2 = refScroller.current) == null ? void 0 : _a2.measure((x, y, width, height) => {
2865
2866
  measured = { height, width, x, y };
2866
2867
  });
2867
2868
  if (measured) {
package/index.mjs CHANGED
@@ -2838,9 +2838,10 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
2838
2838
  set$(ctx, "extraData", extraData);
2839
2839
  }, [extraData]);
2840
2840
  useLayoutEffect(() => {
2841
+ var _a2;
2841
2842
  if (IsNewArchitecture) {
2842
2843
  let measured;
2843
- refScroller.current.measure((x, y, width, height) => {
2844
+ (_a2 = refScroller.current) == null ? void 0 : _a2.measure((x, y, width, height) => {
2844
2845
  measured = { height, width, x, y };
2845
2846
  });
2846
2847
  if (measured) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@legendapp/list",
3
- "version": "2.0.3",
3
+ "version": "2.0.4",
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,