diff --git a/package-lock.json b/package-lock.json index d8a599afd1170..b13b23605aab9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -48,7 +48,7 @@ "@react-ng/bounds-observer": "^0.2.1", "@rnmapbox/maps": "10.1.44", "@sentry/react-native": "8.2.0", - "@shopify/flash-list": "2.2.0", + "@shopify/flash-list": "2.3.0", "@shopify/react-native-skia": "^2.4.14", "@ua/react-native-airship": "~25.0.0", "array.prototype.tosorted": "^1.1.4", @@ -13962,9 +13962,9 @@ "license": "MIT" }, "node_modules/@shopify/flash-list": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/@shopify/flash-list/-/flash-list-2.2.0.tgz", - "integrity": "sha512-mL61IofcfBNRZ/qazIf+pghGULkcZUQ7EZNldH1JBbIjtDb25ADSiQrt62ZTnRz0H5+bPFEZUmN9+WChHzX8pw==", + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/@shopify/flash-list/-/flash-list-2.3.0.tgz", + "integrity": "sha512-DR7VuN8KJHTYj9zv1/IhpqrMBMQyeeW/DCWCbVQAAkWhHrc6ylIbXOY+qK93CuHABV+dNHXK/3V6p4wCSW/+wA==", "license": "MIT", "peerDependencies": { "@babel/runtime": "*", diff --git a/package.json b/package.json index 8cd151dfd2345..a556d7c99c9a0 100644 --- a/package.json +++ b/package.json @@ -112,7 +112,7 @@ "@react-ng/bounds-observer": "^0.2.1", "@rnmapbox/maps": "10.1.44", "@sentry/react-native": "8.2.0", - "@shopify/flash-list": "2.2.0", + "@shopify/flash-list": "2.3.0", "@shopify/react-native-skia": "^2.4.14", "@ua/react-native-airship": "~25.0.0", "array.prototype.tosorted": "^1.1.4", diff --git a/patches/@shopify/flash-list/@shopify+flash-list+2.2.0.patch b/patches/@shopify/flash-list/@shopify+flash-list+2.3.0+001+fix-horizontal-height-normalization.patch similarity index 100% rename from patches/@shopify/flash-list/@shopify+flash-list+2.2.0.patch rename to patches/@shopify/flash-list/@shopify+flash-list+2.3.0+001+fix-horizontal-height-normalization.patch diff --git a/patches/@shopify/flash-list/details.md b/patches/@shopify/flash-list/details.md index 36c4ae0ae0804..cdfdb86609dd7 100644 --- a/patches/@shopify/flash-list/details.md +++ b/patches/@shopify/flash-list/details.md @@ -1,6 +1,6 @@ # `@shopify/flash-list` patches -### [@shopify+flash-list+2.2.0.patch](@shopify+flash-list+2.2.0.patch) +### [@shopify+flash-list+2.3.0+001+fix-horizontal-height-normalization.patch](@shopify+flash-list+2.3.0+001+fix-horizontal-height-normalization.patch) - Reason: Fixes height normalization in horizontal FlashList when items change. `LinearLayoutManager.normalizeLayoutHeights` had three issues: 1. **Screen resize / item shrink**: When items shrink, `tallestItemHeight` was updated prematurely, causing the next cycle to skip re-normalization. Fixed by resetting tallest item tracking when `targetMinHeight === 0` so the next repaint re-detects the tallest item.