Skip to content

Commit 6872811

Browse files
committed
Hack around animated number error
1 parent f4385ef commit 6872811

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/common/AnimatedNumber.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,10 @@ const AnimatedDigit = (props: AnimatedDigitProps): React.ReactElement => {
9999
const styles = getStyles(useTheme())
100100

101101
if (!isIntegerDigit(digit)) {
102-
animY.value = withTiming(0, { duration: animationDuration, easing })
102+
// animY.value = withTiming(0, { duration: animationDuration, easing })
103103
} else {
104104
const height = -1 * (numberHeight * Number(digit))
105-
animY.value = withTiming(height, { duration: animationDuration, easing })
105+
// animY.value = withTiming(height, { duration: animationDuration, easing })
106106
}
107107

108108
const animStyle = useAnimatedStyle(() => {

0 commit comments

Comments
 (0)