In the Firebase console, go to Authentication, then Sign in Method, and enable the Email/Password method. Now, we need to destructure the getAuth that we imported. So, in the handleAction function, let’s do it. Now, let’s create a user by using the createUserWithEmailAndPassword function.
Read moreHow do I add Firebase authentication to React Native?
Ensure the “Email/Password” sign-in provider is enabled on the Firebase Console. The createUserWithEmailAndPassword performs two operations; first creating the user if they do not already exist, and then signing them in. import auth from ‘@react-native-firebase/auth’; auth() .
Read moreHow do I use authentication in React Native?
Authentication for React Native using Expo
Read more