问题描述
在使用通过Firebase进行身份验证的功能时,模拟器显示错误,即{您通过调用firebase.app()尝试使用未安装在android项目中的firebase模块)。请帮助我解决此错误。 我正在使用Expo作为命令行输入。
react-native version -0.63.6,"@react-native-firebase/app": "^8.4.3","@react-native-firebase/auth": "^9.2.3"
解决方法
如果使用的是expo客户端,则不应使用react-native-firebase模块,因为它们与expo客户端不兼容。
但是,您可以改用firebase javascript SDK。 there对此进行了说明。
,目前,如果您使用移动配置,Firebase 无法在 React Native 中工作。但是,如果您使用 Web 配置,它将起作用。这是youtube tutorial。从 #1) $ git commit -m "Something terribly misguided"
#2) $ git reset HEAD~
观看以进行设置。