Now I am using Firebase authentication in React Native project. I started with 'firebase' module at the beginning of the project. And after that I added 'react-native-firebase' module for some reason.(crashlytics, Deep link etc) Then in one *.js file(e.g: Login.js), can I use those two modules at the same time?
Login method of those two module is different a little each other.
e.g: firebase
import firebaseAuth from '../config';
...  ...
firebaseAuth.signInWithEmailAndPassword(this.state.email, this.state.password)
  .then(() => this.props.navigation.navigate('CreateRoom'))
  .catch(error => this.setState({ errorMessage: error.message }), alert(this.state.errorMessage));
@react-native-firebase/auth
import auth from '@react-native-firebase/auth';
...   ...
    try {
      const doLogin = await auth().signInWithEmailAndPassword(
        this.state.email,
        this.state.password,
      );
      if (doLogin.user) {
        this.props.navigation.navigate('Main');
      } else {
        alert('User info incorrect.')
      }
    } catch (err) {
        console.log('Login Error', err);
    }
Is it possible to use those 2 modules at the same time? And what is the difference of those 2 modules? Any answer will be appreciate. Thank you.
