From da113ac1d02777a8d16a88f61b5c4b1f7dc0a94e Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Mon, 5 Dec 2022 10:04:58 -0300 Subject: [PATCH] Patch FlashList https://github.com/Shopify/flash-list/issues/679#issue-1455946016 --- patches/@shopify+flash-list+1.2.2.patch | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 patches/@shopify+flash-list+1.2.2.patch diff --git a/patches/@shopify+flash-list+1.2.2.patch b/patches/@shopify+flash-list+1.2.2.patch new file mode 100644 index 000000000..9b6ca8d38 --- /dev/null +++ b/patches/@shopify+flash-list+1.2.2.patch @@ -0,0 +1,16 @@ +diff --git a/node_modules/@shopify/flash-list/ios/Sources/AutoLayoutView.swift b/node_modules/@shopify/flash-list/ios/Sources/AutoLayoutView.swift +index c2146c5..5ce7900 100644 +--- a/node_modules/@shopify/flash-list/ios/Sources/AutoLayoutView.swift ++++ b/node_modules/@shopify/flash-list/ios/Sources/AutoLayoutView.swift +@@ -231,7 +231,10 @@ import UIKit + + /// Fixes footer position along with rest of the items + private func fixFooter() { +- guard !disableAutoLayout, let parentScrollView = getScrollView() else { ++ guard !disableAutoLayout, ++ // Fixing layout during animation can interfere with it. ++ layer.animationKeys()?.isEmpty ?? true, ++ let parentScrollView = getScrollView() else { + return + } +