import React, { useState } from 'react'; import { View, Text, SafeAreaView, Alert } from 'react-native'; import { InputField, Button, InlineButton } from '@components'; import { styles } from './forgotPassword.styles'; interface ForgotPasswordScreenProps { onSendCode: (emailOrPhone: string) => void; onSignInPress: () => void; } export function ForgotPasswordScreen({ onSendCode, onSignInPress, }: ForgotPasswordScreenProps) { const [emailOrPhone, setEmailOrPhone] = useState(''); const [loading, setLoading] = useState(false); const handleSendCode = async () => { if (!emailOrPhone.trim()) { Alert.alert('Error', 'Please enter your email or phone number'); return; } setLoading(true); try { // Simulating verification code API call await new Promise((resolve) => { setTimeout(() => { resolve(''); }, 1000); }); Alert.alert('Success', `Verification code sent to ${emailOrPhone}`); onSendCode(emailOrPhone); } finally { setLoading(false); } }; return ( {/* Header */} Forgot Password Enter your registered email address or phone number to reset your password. {/* Email or Phone Input */} {/* Send Verification Code Button */}