additional hooks

This commit is contained in:
ivic00
2024-08-22 22:02:43 +02:00
parent 55a3091023
commit 0a862e7a8c
14 changed files with 3376 additions and 2999 deletions

View File

@ -0,0 +1,20 @@
import { useMutation } from "react-query";
import auth from "@react-native-firebase/auth";
import { useUpdateUserData } from "@/hooks/firebase/useUpdateUserData";
import { ProfileType } from "@/contexts/AuthContext";
export const useSignIn = () => {
return useMutation({
mutationKey: ["signIn"],
mutationFn: async ({
email,
password,
}: {
email: string;
password: string;
}) => {
await auth().signInWithEmailAndPassword(email, password);
},
});
};