我使用Firebase关注了React原生登录教程,我使用create-react-native-app进行简易开发(我的package.json),我正在使用NodeJS v6.10.1
,我正在使用注4设备(4.4.4),我启用Email/Password
认证火力地堡控制台中,由于某种原因,我得到:尝试登录时出现React-native,Firebase网络错误
{
code: "auth/network-request-failed",
message: "A network error (such as timeout, interrupted connection or unreachable host) has occurred."
}
我没有忘记用firebase.initializeApp
和我的代码是:
firebase.auth().signInWithEmailAndPassword(email, password)
.catch(e0 => {
console.log(e0);
firebase.auth().createUserWithEmailAndPassword(email, password)
.catch(e1 => {
console.log(e1);
this.setState({ error: 'Authentication Failed.' });
});
});
对于我都得到相同的错误目的。
现在再试一次..我已经多次看到,你会得到一段时间后消失的随机网络错误 –
@ChristopherRivera我试过了,不幸的是同样的错误。 –