Skip to content

Commit

Permalink
fix: use native driver on button press
Browse files Browse the repository at this point in the history
  • Loading branch information
lukewalczak committed Apr 14, 2022
1 parent e1b62c1 commit 5ac8ede
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ const Button = ({
Animated.timing(elevation, {
toValue: activeElevation,
duration: 200 * scale,
useNativeDriver: false,
useNativeDriver: true,
}).start();
}
};
Expand All @@ -189,7 +189,7 @@ const Button = ({
Animated.timing(elevation, {
toValue: initialElevation,
duration: 150 * scale,
useNativeDriver: false,
useNativeDriver: true,
}).start();
}
};
Expand Down

0 comments on commit 5ac8ede

Please sign in to comment.