Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/firebase/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
React本机应用程序firebase.auth()不是函数_Firebase_React Native_Firebase Authentication - Fatal编程技术网

React本机应用程序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()不是一个函数。这是我

我开发了一个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否