diff --git a/guard_app/src/components/FloatingSOSButton.tsx b/guard_app/src/components/FloatingSOSButton.tsx index 25eb848e..d695aa22 100644 --- a/guard_app/src/components/FloatingSOSButton.tsx +++ b/guard_app/src/components/FloatingSOSButton.tsx @@ -2,189 +2,152 @@ import { Ionicons } from '@expo/vector-icons'; import { useNavigation } from '@react-navigation/native'; import { NativeStackNavigationProp } from '@react-navigation/native-stack'; -import React, { useCallback, useEffect, useRef, useState } from 'react'; -import { Animated, Easing, Pressable, StyleSheet, Text, View, Vibration } from 'react-native'; +import React, { useCallback, useRef, useState } from 'react'; +import { Animated, Easing, Pressable, StyleSheet, Text, View } from 'react-native'; +import SOSConfirmSheet from './sos/SOSConfirmSheet'; import type { RootStackParamList } from '../navigation/AppNavigator'; -const HOLD_DURATION_MS = 2000; const SIZE = 64; type Nav = NativeStackNavigationProp; type Props = { - /** Optional override for hold-to-trigger duration */ - holdDurationMs?: number; /** Optional bottom offset (e.g. to clear a tab bar) */ bottomOffset?: number; /** Optional right offset */ rightOffset?: number; }; -export default function FloatingSOSButton({ - holdDurationMs = HOLD_DURATION_MS, - bottomOffset = 90, - rightOffset = 20, -}: Props) { +export default function FloatingSOSButton({ bottomOffset = 90, rightOffset = 20 }: Props) { const navigation = useNavigation