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:
@@ -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
|
||||
|
||||
@@ -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={() => {
|
||||
|
||||
Reference in New Issue
Block a user