We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af0ef7f commit b9e821fCopy full SHA for b9e821f
app/component-library/components-temp/Tabs/Tab/Tab.tsx
@@ -9,6 +9,7 @@ import {
9
TextVariant,
10
FontWeight,
11
} from '@metamask/design-system-react-native';
12
+import { AnimationDuration } from '../../../constants/animation.constants';
13
14
// Internal dependencies.
15
import { TabProps } from './Tab.types';
@@ -27,7 +28,7 @@ const Tab: React.FC<TabProps> = ({
27
28
useEffect(() => {
29
Animated.timing(scaleAnim, {
30
toValue: isActive && !isDisabled ? 1 : 0,
- duration: 200,
31
+ duration: AnimationDuration.Fast,
32
useNativeDriver: true,
33
}).start();
34
}, [isActive, isDisabled, scaleAnim]);
0 commit comments