React本机应用程序firebase.auth()不是函数
我开发了一个react本机应用程序,它使用firebase身份验证。直到昨天,天气一直很好。我昨天使用了以下命令来构建应用程序 react本机捆绑包--平台android--开发错误--条目文件 index.js--包输出 android/app/src/main/assets/index.android.bundle——资产目的地 android/app/src/main/res 格雷德勒 之后,创建的apk或源代码在尝试登录时不起作用。这表明firebase.auth()不是一个函数。这是我的密码React本机应用程序firebase.auth()不是函数,firebase,react-native,firebase-authentication,Firebase,React Native,Firebase Authentication,我开发了一个react本机应用程序,它使用firebase身份验证。直到昨天,天气一直很好。我昨天使用了以下命令来构建应用程序 react本机捆绑包--平台android--开发错误--条目文件 index.js--包输出 android/app/src/main/assets/index.android.bundle——资产目的地 android/app/src/main/res 格雷德勒 之后,创建的apk或源代码在尝试登录时不起作用。这表明firebase.auth()不是一个函数。这是我
firebase.auth().signInWithEmailAndPassword(email, password).then((user) => {
this.props.navigation.navigate('Restaurent')
if(user){
//--------------------------Async Test--------------------------
AsyncStorage.setItem("user", firebase.auth().currentUser.uid)
console.log("AsyncStorage= "+ asyncValue)
//--------------------------------------------------------------
}else{
}
}
自上次使用
gradlew
成功构建应用程序以来,您的依赖项是否发生了变化?您是否更新/链接了/android
文件夹中的任何文件,如在AndroidManifest.xml
或build.gradle
文件中添加第三方模块或本机配置?@MarcelKalveram noDid自上次成功使用gradlew
构建应用程序以来,您的依赖项是否发生了变化?您是否更新/链接了/android
文件夹中的任何文件,比如在AndroidManifest.xml
或build.gradle
文件中添加第三方模块或本机配置?@MarcelKalveram否