feat(mobile): spped up some animations

This commit is contained in:
DIYgod 2025-05-24 11:34:25 +08:00
parent db0d36ef2a
commit bf1f34fdb0
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -48,12 +48,12 @@ export const AISummary: FC<{
const measureContent = (event: LayoutChangeEvent) => {
setContentHeight(event.nativeEvent.layout.height + 10)
height.value = withSpring(event.nativeEvent.layout.height + 10, {
damping: 20,
dampingRatio: 2,
stiffness: 90,
mass: 1,
overshootClamping: true,
restDisplacementThreshold: 0.01,
restSpeedThreshold: 0.01,
duration: 200,
})
}