rnfirebase updatePhOneNumber引发错误com.facebook.react.bridge.readnativemap无法转换为java.lang.string

时间:2020-06-21 09:39:45

标签: firebase react-native react-native-android react-native-firebase

我正在尝试使用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”

0 个答案:

没有答案