-
-
- ref={listRef}
- data={rows}
- keyExtractor={keyExtractor}
- getItemType={getItemType}
- renderItem={renderItem}
- estimatedItemSize={90}
- initialScrollAtEnd
- {...(anchoredEndSpace ? { anchoredEndSpace } : {})}
- contentInsetEndAdjustment={contentInsetEndAdjustment}
- // LegendList owns ordinary end-follow (#5449): the app only turns
- // it off while the user reads history (liveFollowEnabled), while a
- // sent turn anchors near the top (anchoredEndSpace), or for the
- // two-frame settle window of a fold toggle.
- maintainScrollAtEnd={
- anchoredEndSpace || !liveFollowEnabled || disclosureToggleSettling
- ? false
- : TIMELINE_MAINTAIN_SCROLL_AT_END
- }
- maintainVisibleContentPosition={maintainVisibleContentPosition}
- onScroll={handleScroll}
- className={cn(
- "messages-timeline-scroll scrollbar-gutter-both h-full min-h-0 overflow-x-hidden overscroll-y-contain px-3 [overflow-anchor:none] sm:px-5",
- topFadeEnabled && "chat-timeline-scroll-fade",
- )}
- ListHeaderComponent={listHeader}
- ListFooterComponent={TIMELINE_LIST_FOOTER}
- />
- {
- onManualNavigation();
- void listRef.current?.scrollToIndex({
- index: item.rowIndex,
- animated: true,
- viewOffset: 24,
- });
- }}
- />
-
+
+
+
+ ref={listRef}
+ data={rows}
+ keyExtractor={keyExtractor}
+ getItemType={getItemType}
+ renderItem={renderItem}
+ estimatedItemSize={90}
+ initialScrollAtEnd
+ {...(anchoredEndSpace ? { anchoredEndSpace } : {})}
+ contentInsetEndAdjustment={contentInsetEndAdjustment}
+ // LegendList owns ordinary end-follow (#5449): the app only turns
+ // it off while the user reads history (liveFollowEnabled), while a
+ // sent turn anchors near the top (anchoredEndSpace), or for the
+ // two-frame settle window of a fold toggle.
+ maintainScrollAtEnd={
+ anchoredEndSpace || !liveFollowEnabled || disclosureToggleSettling
+ ? false
+ : TIMELINE_MAINTAIN_SCROLL_AT_END
+ }
+ maintainVisibleContentPosition={maintainVisibleContentPosition}
+ onScroll={handleScroll}
+ className={cn(
+ "messages-timeline-scroll scrollbar-gutter-both h-full min-h-0 overflow-x-hidden overscroll-y-contain px-3 [overflow-anchor:none] sm:px-5",
+ topFadeEnabled && "chat-timeline-scroll-fade",
+ )}
+ ListHeaderComponent={listHeader}
+ ListFooterComponent={TIMELINE_LIST_FOOTER}
+ />
+ {
+ onManualNavigation();
+ void listRef.current?.scrollToIndex({
+ index: item.rowIndex,
+ animated: true,
+ viewOffset: 24,
+ });
+ }}
+ />
+
+