From c10c0cbfa8be704e9a6c348228dfb5709f9bf7c2 Mon Sep 17 00:00:00 2001 From: ankit-tailor Date: Tue, 16 Jul 2024 14:11:08 +0530 Subject: [PATCH] fix: menu animation --- .../src/core-components/nativewind/menu/index.tsx | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/example/storybook-nativewind/src/core-components/nativewind/menu/index.tsx b/example/storybook-nativewind/src/core-components/nativewind/menu/index.tsx index 1a80e66c8..b0848534f 100644 --- a/example/storybook-nativewind/src/core-components/nativewind/menu/index.tsx +++ b/example/storybook-nativewind/src/core-components/nativewind/menu/index.tsx @@ -119,21 +119,19 @@ const Menu = React.forwardRef( ref={ref} initial={{ opacity: 0, + scale: 0.8, }} animate={{ opacity: 1, + scale: 1, }} exit={{ opacity: 0, + scale: 0.8, }} transition={{ - type: 'spring', - damping: 18, - stiffness: 250, - opacity: { - type: 'timing', - duration: 200, - }, + type: 'timing', + duration: 100, }} className={menuStyle({ class: className,