The best way to control Claude Code, Codex and more from any computer or phone
perf(mobile): render Home rows further ahead while scrolling (#13705)
Co-authored-by: Julius Marminge <julius0216@outlook.com> Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
AKolenda committed
Sep 25, 2026 at 18:35 UTC
595a1e1f537f403eba408817c2aba35e61c2ac29
1 file changed
+5
-1
apps/mobile/src/features/home/HomeScreen.tsx
+5
-1
@@ -138,6 +138,10 @@ interface HomeScreenProps {
138
// measured-height pool expansion. The old tallest-card estimate (~92) fired
139
// that warning on every ordinary shelf expand, so the average wins.
140
const ESTIMATED_THREAD_LIST_V2_ROW_HEIGHT = 72;
141
+// Rows away from the viewport are cheap dormant frames (see
142
+// swipe-row-activation), so render further ahead: a fast fling then reaches
143
+// rows that are already built instead of rows still being rebuilt.
144
+const THREAD_LIST_V2_DRAW_DISTANCE = 1_000;
145
const PRE_LIQUID_GLASS_BOTTOM_TOOLBAR_HEIGHT = 44;
146
/**
147
* Top spacing between the list and the Android custom header. The Android
@@ -1014,7 +1018,7 @@ export function HomeScreen(props: HomeScreenProps) {
1018
getItemType={(item) => item.type}
1019
itemsAreEqual={threadListV2ListItemsAreEqual}
1020
estimatedItemSize={ESTIMATED_THREAD_LIST_V2_ROW_HEIGHT}
1017
- drawDistance={500}
1021
+ drawDistance={THREAD_LIST_V2_DRAW_DISTANCE}
1022
recycleItems
1023
extraData={v2ExtraData}
1024
ListHeaderComponent={v2ListHeader}