Update logic for profile creation

This commit is contained in:
Milan Paunovic
2024-08-21 20:03:40 +02:00
parent 4a20f7a53e
commit 957e0a582e
16 changed files with 1670 additions and 2228 deletions

View File

@ -0,0 +1,11 @@
import {useMutation} from "react-query";
import auth from "@react-native-firebase/auth";
export const useSignUp = () => {
return useMutation({
mutationKey: ["signUp"],
mutationFn: async ({email, password}: { email: string, password: string }) => {
await auth().createUserWithEmailAndPassword(email, password)
}
});
}