Skip to content
This repository was archived by the owner on Oct 10, 2026. It is now read-only.

Commit 476d69c

Browse files
t3dotggclaude
andauthored
fix(mobile): threads load snapped to bottom on iOS (pingdotgg#4689)
Co-authored-by: Claude Fable 5 <[email protected]>
1 parent a148e08 commit 476d69c

2 files changed

Lines changed: 25 additions & 7 deletions

File tree

‎patches/@[email protected]‎

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ index 72d3f59..435a5fc 100644
204204
* Number of columns to render items in.
205205
* @default 1
206206
diff --git a/react-native.js b/react-native.js
207-
index 8d4ff89..18f0d62 100644
207+
index 8d4ff89..003b2f7 100644
208208
--- a/react-native.js
209209
+++ b/react-native.js
210210
@@ -1195,7 +1195,7 @@ function setInitialRenderState(ctx, {
@@ -510,6 +510,15 @@ index 8d4ff89..18f0d62 100644
510510
onRefresh,
511511
onScroll: onScrollProp,
512512
onStartReached,
513+
@@ -6577,7 +6729,7 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
514+
const combinedRef = useCombinedRef(refScroller, refScrollView);
515+
const keyExtractor = keyExtractorProp != null ? keyExtractorProp : ((_item, index) => index.toString());
516+
const stickyHeaderIndices = stickyHeaderIndicesProp;
517+
- const contentInsetEndAdjustmentResolved = Platform.OS === "web" ? contentInsetEndAdjustment : void 0;
518+
+ const contentInsetEndAdjustmentResolved = contentInsetEndAdjustment;
519+
const previousContentInsetEndAdjustmentRef = React2.useRef(contentInsetEndAdjustmentResolved);
520+
const alwaysRenderIndices = React2.useMemo(() => {
521+
const indices = getAlwaysRenderIndices(alwaysRender, dataProp, keyExtractor, anchoredEndSpace == null ? void 0 : anchoredEndSpace.anchorIndex);
513522
@@ -6710,6 +6862,7 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
514523
contentContainerAlignItems: contentContainerStyle.alignItems,
515524
contentInset,
@@ -554,7 +563,7 @@ index 8d4ff89..18f0d62 100644
554563
recycleItems,
555564
refreshControl: refreshControlElement ? stylePaddingTopState > 0 ? React2__namespace.cloneElement(refreshControlElement, {
556565
diff --git a/react-native.mjs b/react-native.mjs
557-
index 2e96ca7..6e8913e 100644
566+
index 2e96ca7..fc88d4b 100644
558567
--- a/react-native.mjs
559568
+++ b/react-native.mjs
560569
@@ -1174,7 +1174,7 @@ function setInitialRenderState(ctx, {
@@ -860,6 +869,15 @@ index 2e96ca7..6e8913e 100644
860869
onRefresh,
861870
onScroll: onScrollProp,
862871
onStartReached,
872+
@@ -6556,7 +6708,7 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
873+
const combinedRef = useCombinedRef(refScroller, refScrollView);
874+
const keyExtractor = keyExtractorProp != null ? keyExtractorProp : ((_item, index) => index.toString());
875+
const stickyHeaderIndices = stickyHeaderIndicesProp;
876+
- const contentInsetEndAdjustmentResolved = Platform.OS === "web" ? contentInsetEndAdjustment : void 0;
877+
+ const contentInsetEndAdjustmentResolved = contentInsetEndAdjustment;
878+
const previousContentInsetEndAdjustmentRef = useRef(contentInsetEndAdjustmentResolved);
879+
const alwaysRenderIndices = useMemo(() => {
880+
const indices = getAlwaysRenderIndices(alwaysRender, dataProp, keyExtractor, anchoredEndSpace == null ? void 0 : anchoredEndSpace.anchorIndex);
863881
@@ -6689,6 +6841,7 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
864882
contentContainerAlignItems: contentContainerStyle.alignItems,
865883
contentInset,

‎pnpm-lock.yaml‎

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)