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 moreHow do you authenticate Firebase in React Native?
Setting up Firebase authentication Next, you should enable email/password authentication in the sign-in methods . Once you’ve enabled it, press Save . Let’s install the @react-native-firebase/auth package in our app. With this, the Firebase authentication module is setup in our application.
Read more