diff options
author | Hailey <me@haileyok.com> | 2024-09-02 03:15:31 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-02 03:15:31 -0700 |
commit | 4abcd65ccf94e36251142faeabdac42cada490fe (patch) | |
tree | 31b3fa46704a0c4502ed7a52eb0b1531af9628c4 /src/lib/custom-animations/CountWheel.tsx | |
parent | 05ac76fc8942ec9ceda83d0f35a61763ae9bbcb5 (diff) | |
download | voidsky-4abcd65ccf94e36251142faeabdac42cada490fe.tar.zst |
More tweaks to animation (#5082)
Diffstat (limited to 'src/lib/custom-animations/CountWheel.tsx')
-rw-r--r-- | src/lib/custom-animations/CountWheel.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/custom-animations/CountWheel.tsx b/src/lib/custom-animations/CountWheel.tsx index dfa697911..1a8676712 100644 --- a/src/lib/custom-animations/CountWheel.tsx +++ b/src/lib/custom-animations/CountWheel.tsx @@ -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={[ |