I am trying out firebase auth signInWithPhoneNumber in my react-native app. Following https://rnfirebase.io/docs/master/auth/phone-auth. However on
firebase.auth().signInWithPhoneNumber(phoneNumber)
.then(confirmResult => {
console.log(confirmResult)
}).catch(error => {
console.log(error)
});
confirmResults doesn't have a confirm method.
ConfirmationResult {_auth: Auth {_app: App, _customUrlOrRegion: undefined, namespace: "auth", _user: null, _settings: null, …}
_verificationId: "AM5PThBgtChKnxaZPAnPE_9zR_4qd1p2YchqZLNexlWtTiBxkUhEoOd79z0oujNP9pYrs9rgUbTsluCnlsqFjJCdbv83d89vg9LhZXJWbsnTB6w8lmxn00OqVe8S_Qc3Pfnw2qHMgZzV"
verificationId: (...)
__proto__: Object
What am I doing wrong?