From 4183a1e99d4ebea7b8dfe796adcdddfec4fadbf1 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Thu, 16 Jan 2025 01:23:27 +0000 Subject: [PATCH] don't spring on way down --- src/screens/Feeds/VibeScreen.tsx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/screens/Feeds/VibeScreen.tsx b/src/screens/Feeds/VibeScreen.tsx index a17e1bd278..1c79d524c7 100644 --- a/src/screens/Feeds/VibeScreen.tsx +++ b/src/screens/Feeds/VibeScreen.tsx @@ -468,10 +468,14 @@ function ExpandableRichTextView({ scrollEnabled={expanded} onContentSizeChange={(_w, h) => { if (contentHeight !== 0) { - LayoutAnimation.configureNext({ - duration: 500, - update: {type: 'spring', springDamping: 0.6}, - }) + LayoutAnimation.configureNext( + h > contentHeight + ? { + duration: 500, + update: {type: 'spring', springDamping: 0.6}, + } + : LayoutAnimation.Presets.easeInEaseOut, + ) } setContentHeight(h) }}