Skip to content

Commit 7c66c82

Browse files
mozziusclaude
andcommitted
fix(mobile): sent messages rise into place instead of dropping in
Reanimated names entering presets after the side they start from, so FadeInUp starts at translateY -25 and moves down. A message sent from the composer at the bottom therefore dropped in from above. FadeInDown starts at +25 and moves up, matching the composer-adjacent elements in ThreadDetailScreen. Add FadeInDown to the reanimated mock in filePreview.test.ts, which renders ThreadFeed. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
1 parent 8760d06 commit 7c66c82

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎apps/mobile/src/features/threads/ThreadFeed.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ import { flattenThemeColor } from "../../lib/mobileTheme";
141141
import { PresentationSource } from "../../components/ui/NativePresentation";
142142
import { NativeScrollViewMarker } from "../../native/NativeScrollViewMarker";
143143
import { useSafeAreaInsets } from "react-native-safe-area-context";
144-
import Animated, { FadeIn, FadeInUp, type SharedValue } from "react-native-reanimated";
144+
import Animated, { FadeIn, FadeInDown, type SharedValue } from "react-native-reanimated";
145145
import { useUniwindTheme } from "../../lib/useUniwindTheme";
146146
import { IOS_NAV_BAR_HEIGHT } from "../../lib/layoutMetrics";
147147
import { FONT_FAMILIES } from "../../lib/fontFamilies";
@@ -1983,7 +1983,7 @@ function renderFeedEntry(
19831983
return (
19841984
<Animated.View
19851985
className={cn("items-end", props.userMessageGrouping.groupedWithNext ? "mb-1" : "mb-5")}
1986-
{...(enterAnimated ? { entering: FadeInUp.duration(220) } : {})}
1986+
{...(enterAnimated ? { entering: FadeInDown.duration(220) } : {})}
19871987
>
19881988
{presentation.attribution === "t3code" ? (
19891989
<Text className="mb-1 pr-1 font-t3-medium text-2xs text-foreground-muted opacity-60">

‎apps/mobile/src/lib/filePreview.test.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ vi.mock("react-native-reanimated", () => {
214214
return {
215215
default: { View: ({ children }: { children?: ReactNode }) => children },
216216
FadeIn: transition,
217+
FadeInDown: transition,
217218
FadeInUp: transition,
218219
};
219220
});

0 commit comments

Comments
 (0)