React Native Firebase在设备上给出错误,但可在模拟器上运行

问题描述

我是React Native / Firebase的新手。我按照these的说明为Android设置了@react-native-firebase/auth。 我已经从Firebase Web控制台启用了基于电子邮件/密码登录,并创建了一个用于测试的用户。我正在使用以下代码调用Firebase身份验证。

auth()
  .signInWithEmailAndPassword(userNameText,passwordText)
  .then(() => {
    navigation.navigate("ClientMainScreen");
  })
  .catch((error) => {
    setSnackBarVisible(true);
  });

问题是,这似乎在Mac上的Android模拟器上运行时没有错误,但是当使用expo publish在物理android设备上进行测试时,尝试使用以下命令执行此代码段时,应用程序崩溃在Expo Client中出现以下错误日志。我想念什么?

enter image description here

对于上下文,我的index.js看起来像这样

import { registerRootComponent } from "expo";

import App from "./App";

registerRootComponent(App);

我正在使用react-native": "~0.62.2"

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)