don't spring on way down

This commit is contained in:
Samuel Newman
2025-01-16 01:23:27 +00:00
committed by Eric Bailey
parent 6e4268e7f7
commit 4183a1e99d
+8 -4
View File
@@ -468,10 +468,14 @@ function ExpandableRichTextView({
scrollEnabled={expanded} scrollEnabled={expanded}
onContentSizeChange={(_w, h) => { onContentSizeChange={(_w, h) => {
if (contentHeight !== 0) { if (contentHeight !== 0) {
LayoutAnimation.configureNext({ LayoutAnimation.configureNext(
duration: 500, h > contentHeight
update: {type: 'spring', springDamping: 0.6}, ? {
}) duration: 500,
update: {type: 'spring', springDamping: 0.6},
}
: LayoutAnimation.Presets.easeInEaseOut,
)
} }
setContentHeight(h) setContentHeight(h)
}} }}