From 2c00d79902ebbcda9ecd3cf6cf7ac57fc8f49526 Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Mon, 29 Jun 2026 23:16:01 -0700 Subject: [PATCH] Use shared native scroll edge effect in thread surfaces --- apps/mobile/src/features/threads/ThreadFeed.tsx | 5 ++++- apps/mobile/src/features/threads/ThreadNavigationSidebar.tsx | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/apps/mobile/src/features/threads/ThreadFeed.tsx b/apps/mobile/src/features/threads/ThreadFeed.tsx index 745fc1770b..9c66149025 100644 --- a/apps/mobile/src/features/threads/ThreadFeed.tsx +++ b/apps/mobile/src/features/threads/ThreadFeed.tsx @@ -25,6 +25,7 @@ import { ActivityIndicator, Image, Linking, + Platform, type LayoutChangeEvent, type NativeScrollEvent, type NativeSyntheticEvent, @@ -68,6 +69,7 @@ import { import { buildReviewParsedDiff } from "../review/reviewModel"; import { cn } from "../../lib/cn"; import { deriveCenteredContentHorizontalPadding, type LayoutVariant } from "../../lib/layout"; +import { nativeTopScrollEdgeEffect } from "../../lib/native-scroll-edge-effect"; import { buildThreadFilesNavigation } from "../../lib/routes"; import { MOBILE_CODE_SURFACE, MOBILE_TYPOGRAPHY } from "../../lib/typography"; import { markdownFileIconSource } from "@t3tools/mobile-markdown-text/file-icons"; @@ -86,6 +88,7 @@ const MESSAGE_TIME_FORMATTER = new Intl.DateTimeFormat(undefined, { hour: "numeric", minute: "2-digit", }); +const TOP_SCROLL_EDGE_EFFECT = nativeTopScrollEdgeEffect(Platform.OS, Platform.Version); function formatMessageTime(input: string): string { const timestamp = Date.parse(input); @@ -1499,7 +1502,7 @@ export const ThreadFeed = memo(function ThreadFeed(props: ThreadFeedProps) {