More tweaks to animation (#5082)

This commit is contained in:
Hailey 2024-09-02 03:15:31 -07:00 committed by GitHub
parent 05ac76fc89
commit 4abcd65ccf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 28 additions and 31 deletions

View file

@ -151,12 +151,12 @@ export function CountWheel({
{formattedCount}
</Text>
</Animated.View>
{shouldAnimate ? (
{shouldAnimate && (likeCount > 1 || !isLiked) ? (
<Animated.View
entering={exitingAnimation}
// Add 2 to the key so there are never duplicates
key={key + 2}
style={[a.absolute, {width: 50}]}
style={[a.absolute, {width: 50, opacity: 0}]}
aria-disabled={true}>
<Text
style={[