import auth from "@react-native-firebase/auth" const Forgotpassword = (email)=>{ email.toString(); if(!email) { Alert.alert("please enter Email"); } else{ console.log(email) //return sendPasswordResetEmail(auth,email) return auth().sendPasswordResetEmail(email).then(()=>{ showToast(); }).catch((error)=>{ Alert.alert('Error:', error.message) }) } }
Asked
Active
Viewed 18 times
0
-
Edit the question and have your code formatted. – Mostafa Elkaramany Aug 12 '22 at 14:13
-
If there's no error when you call `sendPasswordResetEmail`, the email almost certainly was sent correctly. Check your spam folder, as recently a lot of the auth emails from Firebase are showing up there for users. – Frank van Puffelen Aug 12 '22 at 14:34