Skip to content

Commit b9e821f

Browse files
chore: updating to use animation duration enum
1 parent af0ef7f commit b9e821f

File tree

1 file changed

+2
-1
lines changed
  • app/component-library/components-temp/Tabs/Tab

1 file changed

+2
-1
lines changed

app/component-library/components-temp/Tabs/Tab/Tab.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
TextVariant,
1010
FontWeight,
1111
} from '@metamask/design-system-react-native';
12+
import { AnimationDuration } from '../../../constants/animation.constants';
1213

1314
// Internal dependencies.
1415
import { TabProps } from './Tab.types';
@@ -27,7 +28,7 @@ const Tab: React.FC<TabProps> = ({
2728
useEffect(() => {
2829
Animated.timing(scaleAnim, {
2930
toValue: isActive && !isDisabled ? 1 : 0,
30-
duration: 200,
31+
duration: AnimationDuration.Fast,
3132
useNativeDriver: true,
3233
}).start();
3334
}, [isActive, isDisabled, scaleAnim]);

0 commit comments

Comments
 (0)