|
| 1 | +diff --git a/node_modules/@shopify/flash-list/dist/recyclerview/RecyclerView.js b/node_modules/@shopify/flash-list/dist/recyclerview/RecyclerView.js |
| 2 | +index 8b75322..dd2d3bc 100644 |
| 3 | +--- a/node_modules/@shopify/flash-list/dist/recyclerview/RecyclerView.js |
| 4 | ++++ b/node_modules/@shopify/flash-list/dist/recyclerview/RecyclerView.js |
| 5 | +@@ -74,6 +74,10 @@ const RecyclerViewComponent = (props, ref) => { |
| 6 | + if (internalViewRef.current && firstChildViewRef.current) { |
| 7 | + // Measure the outer container size and inner container layout |
| 8 | + const outerViewSize = measureParentSize(internalViewRef.current); |
| 9 | ++ if (outerViewSize.width === 0 && outerViewSize.height === 0) { |
| 10 | ++ containerViewSizeRef.current = outerViewSize; |
| 11 | ++ return; |
| 12 | ++ } |
| 13 | + const firstChildViewLayout = measureFirstChildLayout(firstChildViewRef.current, internalViewRef.current); |
| 14 | + containerViewSizeRef.current = outerViewSize; |
| 15 | + // firstChildViewLayout is already relative to the outer container, |
| 16 | +@@ -103,6 +107,10 @@ const RecyclerViewComponent = (props, ref) => { |
| 17 | + if (pendingChildIds.size > 0) { |
| 18 | + return; |
| 19 | + } |
| 20 | ++ if (((_a = containerViewSizeRef.current) === null || _a === void 0 ? void 0 : _a.width) === 0 && |
| 21 | ++ ((_b = containerViewSizeRef.current) === null || _b === void 0 ? void 0 : _b.height) === 0) { |
| 22 | ++ return; |
| 23 | ++ } |
| 24 | + const layoutInfo = Array.from(refHolder, ([index, viewHolderRef]) => { |
| 25 | + const layout = measureItemLayout(viewHolderRef.current, recyclerViewManager.tryGetLayout(index)); |
| 26 | + // comapre height with stored layout |
0 commit comments