diff --git a/app/(tabs)/receive.tsx b/app/(tabs)/receive.tsx index dd63a95..1f1a81f 100644 --- a/app/(tabs)/receive.tsx +++ b/app/(tabs)/receive.tsx @@ -125,7 +125,7 @@ function ReceiveScreenContent({ walletContext }: { walletContext: ReturnType { @@ -550,4 +550,4 @@ const styles = StyleSheet.create({ textAlign: 'center', letterSpacing: 0.2, }, -}); \ No newline at end of file +}); diff --git a/app/wallet-setup.tsx b/app/wallet-setup.tsx index 5a00f2c..3f8c54a 100644 --- a/app/wallet-setup.tsx +++ b/app/wallet-setup.tsx @@ -57,7 +57,7 @@ try { }; // Verify all required functions are available - const requiredFunctions: (keyof WalletService)[] = ['generateMnemonic', 'validateMnemonic', 'createWallet', 'importWallet']; + const requiredFunctions: Array = ['generateMnemonic', 'validateMnemonic', 'createWallet', 'importWallet']; const missingFunctions = requiredFunctions.filter(func => typeof walletService[func] !== 'function'); if (missingFunctions.length > 0) { @@ -1428,4 +1428,4 @@ const styles = StyleSheet.create({ fontSize: 13, lineHeight: 18, }, -}); \ No newline at end of file +}); diff --git a/components/AnimatedNumber.tsx b/components/AnimatedNumber.tsx index 7b8b918..5093fa5 100644 --- a/components/AnimatedNumber.tsx +++ b/components/AnimatedNumber.tsx @@ -36,7 +36,8 @@ export default function AnimatedNumber({ useEffect(() => { animatedValue.value = withTiming(value, { duration }); - }, [value, duration, animatedValue]); + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [value, duration]); // animatedValue is a stable shared value ref and should not be in deps // Scale animation on value change for emphasis const scale = useSharedValue(1); @@ -45,7 +46,8 @@ export default function AnimatedNumber({ scale.value = withSpring(1.02, { damping: 8, stiffness: 300 }, () => { scale.value = withSpring(1, { damping: 15, stiffness: 400 }); }); - }, [value, scale]); + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [value]); // scale is a stable shared value ref and should not be in deps const animatedStyle = useAnimatedStyle(() => ({ transform: [{ scale: scale.value }], @@ -57,7 +59,6 @@ export default function AnimatedNumber({ const text = `${prefix}${format(animatedValue.value)}${suffix}`; return { text, - defaultValue: text, }; });