我正在尝试使用rnfirebase更新手机号码。
const p_credential = await firebase.auth.PhoneAuthProvider.credential(
verificationId,
inputs.code,
)
console.log("3",p_credential) // prints the credential // working
let u_p = await firebase.auth().currentUser.updatePhoneNumber(p_credential);
const phone_updated = await firebase.auth().currentUser.then(()=>{
console.log("Success update phone");
})
将凭据传递给updatePhoneNumber函数时出错
错误是 “ com.facebook.react.bridge。可读nativemap无法转换为java.lang.string”