For me, the error came from the fact that I was using both react-native-firebase and the Firebase SDK in my application.
I had previously decided to use react-native-firebase, but ended up using the Firebase SDK (so I imported auth from "firebase/auth").
To resolve the issue, I had to remove all "react-native-firebase" dependencies and then delete google-services.json