在這行代碼中,使用了 auth().signInWithCredential ,你仍然在使用 react-native-firebase 庫:
auth().signInWithCredential
react-native-firebase
return auth().signInWithCredential(googleCredential);
在 Firebase JavaScript SDK 中,這可能是 firebase.auth().signInWithCredential 或者 signInWithCredential(auth, ...。
firebase.auth().signInWithCredential
signInWithCredential(auth, ...