refactor(mobile): simplify animation configurations in dialog and player control components

- Removed damping and stiffness parameters from the entering animations in both the dialog and play/pause button components, streamlining the animation setup.
- This change aims to enhance code readability and maintainability while preserving the intended animation effects.

Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
Innei
2025-09-24 22:33:42 +08:00
parent 091a4740ba
commit 402004c880
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ interface ShowDialogOptions<Ctx> {
confirmText?: string
}
}
const entering = SlideInUp.springify().damping(20).stiffness(140)
const entering = SlideInUp.springify()
const exiting = SlideOutUp.duration(400)
type DialogContextType = {
dismiss: () => void
+1 -1
View File
@@ -33,7 +33,7 @@ export function PlayPauseButton({ size = 24, className, color }: ControlButtonPr
return (
<View className={className}>
<ReAnimatedPressable
entering={ZoomIn.springify().damping(10).stiffness(200).mass(1)}
entering={ZoomIn.springify()}
exiting={FadeOut}
key={playing ? "pause" : "play"}
onPress={() => {