Skip to content
TypeScript

fix(mobile): sent messages rise into place instead of dropping in (#28660)

Samuel Newman1db31d0ea138
diff --git a/apps/mobile/src/features/threads/ThreadFeed.tsx b/apps/mobile/src/features/threads/ThreadFeed.tsx
index fb4fd3fe112..b43e246fc9c 100644
--- a/apps/mobile/src/features/threads/ThreadFeed.tsx
+++ b/apps/mobile/src/features/threads/ThreadFeed.tsx
@@ -141,7 +141,7 @@ import { flattenThemeColor } from "../../lib/mobileTheme";
import { PresentationSource } from "../../components/ui/NativePresentation";
import { NativeScrollViewMarker } from "../../native/NativeScrollViewMarker";
import { useSafeAreaInsets } from "react-native-safe-area-context";
-import Animated, { FadeIn, FadeInUp, type SharedValue } from "react-native-reanimated";
+import Animated, { FadeIn, FadeInDown, type SharedValue } from "react-native-reanimated";
import { useUniwindTheme } from "../../lib/useUniwindTheme";
import { IOS_NAV_BAR_HEIGHT } from "../../lib/layoutMetrics";
import { FONT_FAMILIES } from "../../lib/fontFamilies";
@@ -1983,7 +1983,7 @@ function renderFeedEntry(
return (
<Animated.View
className={cn("items-end", props.userMessageGrouping.groupedWithNext ? "mb-1" : "mb-5")}
- {...(enterAnimated ? { entering: FadeInUp.duration(220) } : {})}
+ {...(enterAnimated ? { entering: FadeInDown.duration(220) } : {})}
>
{presentation.attribution === "t3code" ? (
<Text className="mb-1 pr-1 font-t3-medium text-2xs text-foreground-muted opacity-60">
diff --git a/apps/mobile/src/lib/filePreview.test.ts b/apps/mobile/src/lib/filePreview.test.ts
index 97a50515770..0363f686244 100644
--- a/apps/mobile/src/lib/filePreview.test.ts
+++ b/apps/mobile/src/lib/filePreview.test.ts
@@ -214,6 +214,7 @@ vi.mock("react-native-reanimated", () => {
return {
default: { View: ({ children }: { children?: ReactNode }) => children },
FadeIn: transition,
+ FadeInDown: transition,
FadeInUp: transition,
};
});