From 66a839560289e162e0764adb60d8cdcdab705d10 Mon Sep 17 00:00:00 2001 From: Sergei Date: Tue, 27 Jan 2026 16:26:18 -0800 Subject: [PATCH] Add haptic feedback to VoiceFAB on press MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- components/VoiceFAB.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/VoiceFAB.tsx b/components/VoiceFAB.tsx index a4b7667..19c0d9a 100644 --- a/components/VoiceFAB.tsx +++ b/components/VoiceFAB.tsx @@ -15,6 +15,7 @@ import { } from 'react-native'; import { Ionicons } from '@expo/vector-icons'; import { useSafeAreaInsets } from 'react-native-safe-area-context'; +import * as Haptics from 'expo-haptics'; import { AppColors, BorderRadius } from '@/constants/theme'; import { useVoiceCall } from '@/contexts/VoiceCallContext'; @@ -66,8 +67,9 @@ export function VoiceFAB({ onPress, style, disabled = false }: VoiceFABProps) { } }, [isCallActive, scale, opacity]); - // Press animation + // Press animation with haptic feedback const handlePressIn = () => { + Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Medium); Animated.spring(scale, { toValue: 0.9, friction: 5,