Skip to content

Commit 1810dd5

Browse files
committed
fix patch 007: preserve MVCP spread when removing shouldMaintainVisibleContentPosition
1 parent d594936 commit 1810dd5

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

patches/@shopify/flash-list/@shopify+flash-list+2.3.0+007+fix-scroll-anchor-unmount-on-ios.patch

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ diff --git a/node_modules/@shopify/flash-list/dist/recyclerview/RecyclerView.js
22
index ee42f63..4e8d8c0 100644
33
--- a/node_modules/@shopify/flash-list/dist/recyclerview/RecyclerView.js
44
+++ b/node_modules/@shopify/flash-list/dist/recyclerview/RecyclerView.js
5-
@@ -380,16 +380,14 @@ const RecyclerViewComponent = (props, ref) => {
5+
@@ -380,16 +380,15 @@ const RecyclerViewComponent = (props, ref) => {
66
}
77
return onScrollHandler;
88
}, [onScrollHandler, scrollY, stickyHeaders, stickyHeaderUseNativeDriver]);
@@ -11,7 +11,7 @@ index ee42f63..4e8d8c0 100644
1111
- if (shouldMaintainVisibleContentPosition) {
1212
+ if (maintainVisibleContentPosition != null) {
1313
return {
14-
- ...maintainVisibleContentPosition,
14+
...maintainVisibleContentPosition,
1515
minIndexForVisible: 0,
1616
};
1717
}
@@ -39,7 +39,7 @@ diff --git a/node_modules/@shopify/flash-list/src/recyclerview/RecyclerView.tsx
3939
index b2bd67a..d4bf02d 100644
4040
--- a/node_modules/@shopify/flash-list/src/recyclerview/RecyclerView.tsx
4141
+++ b/node_modules/@shopify/flash-list/src/recyclerview/RecyclerView.tsx
42-
@@ -572,18 +572,14 @@ const RecyclerViewComponent = <T,>(
42+
@@ -572,18 +572,15 @@ const RecyclerViewComponent = <T,>(
4343
return onScrollHandler;
4444
}, [onScrollHandler, scrollY, stickyHeaders, stickyHeaderUseNativeDriver]);
4545

@@ -50,7 +50,7 @@ index b2bd67a..d4bf02d 100644
5050
- if (shouldMaintainVisibleContentPosition) {
5151
+ if (maintainVisibleContentPosition != null) {
5252
return {
53-
- ...maintainVisibleContentPosition,
53+
...maintainVisibleContentPosition,
5454
minIndexForVisible: 0,
5555
};
5656
}

0 commit comments

Comments
 (0)